Generic.cs 468 B

1234567891011121314151617
  1. using Terminal.Gui;
  2. namespace UICatalog {
  3. [ScenarioMetadata (Name: "Generic", Description: "Generic sample - A template for creating new Scenarios")]
  4. [ScenarioCategory ("Controls")]
  5. class MyScenario : Scenario {
  6. public override void Setup ()
  7. {
  8. // Put your scenario code here, e.g.
  9. Win.Add (new Button ("Press me!") {
  10. X = Pos.Center (),
  11. Y = Pos.Center (),
  12. Clicked = () => MessageBox.Query (20, 7, "Hi", "Neat?", "Yes", "No")
  13. });
  14. }
  15. }
  16. }