https://github.com/karenpayneoregon/dynamic-buttons-windows
Shows how to create dynamic buttons via SQL-Server for Windows Forms
https://github.com/karenpayneoregon/dynamic-buttons-windows
csharpcore dapper-donet-core net8 sqlserver windows-forms
Last synced: 8 months ago
JSON representation
Shows how to create dynamic buttons via SQL-Server for Windows Forms
- Host: GitHub
- URL: https://github.com/karenpayneoregon/dynamic-buttons-windows
- Owner: karenpayneoregon
- Created: 2024-03-08T21:27:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T12:18:25.000Z (almost 2 years ago)
- Last Synced: 2025-05-13T01:17:34.435Z (about 1 year ago)
- Topics: csharpcore, dapper-donet-core, net8, sqlserver, windows-forms
- Language: C#
- Homepage: https://dev.to/karenpayneoregon/winforms-dynamic-buttons-52mj
- Size: 1.64 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Dynamic buttons
Code sample that creates one button for each category from NorthWind database table. Click a category button to get products for that category.
## Screen shot
There are several images for buttons in the project resources.

## Schema

## Requires
- Microsoft Visual Studio 2022 or higher
- NET 8
## Data Operations
[Dapper](https://www.nuget.org/packages/Dapper/2.1.28?_src=template)
## Logging
[SeriLog](https://www.nuget.org/packages/Serilog/3.1.1?_src=template)
## Custom button
Identifier property is used to store category identifier rather than using the tag propery.
```csharp
public class DataButton : Button
{
[Category("Behavior"), Description("Identifier")]
public int Identifier { get; set; }
[Category("Behavior"), Description("Stash")]
public string Stash { get; set; }
}
```