12345678910111213141516171819202122232425262728 |
- using Terminal.Gui;
- namespace UICatalog.Scenarios;
- [ScenarioMetadata ("Date Picker", "Demonstrates how to use DatePicker class")]
- [ScenarioCategory ("Controls")]
- [ScenarioCategory ("DateTime")]
- public class DatePickers : Scenario
- {
- public override void Main ()
- {
- Application.Init ();
- Window app = new ()
- {
- Title = GetQuitKeyAndName ()
- };
- var datePicker = new DatePicker { Y = Pos.Center (), X = Pos.Center () };
- app.Add (datePicker);
- Application.Run (app);
- app.Dispose ();
- Application.Shutdown ();
- }
- }
|