123456789101112131415161718192021222324252627282930313233 |
- using Terminal.Gui;
- namespace UICatalog {
- [ScenarioMetadata (Name: "System Console", Description: "Not working - #518 - Enables System Console and exercises things")]
- [ScenarioCategory ("Bug Repro")]
- [ScenarioCategory ("Console")]
- class UseSystemConsole : Scenario {
- public override void Init (Toplevel top)
- {
- Application.UseSystemConsole = true;
- base.Init (top);
- }
- public override void RequestStop ()
- {
- base.RequestStop ();
- }
- public override void Run ()
- {
- base.Run ();
- }
- public override void Setup ()
- {
- Win.Add (new Button ("Press me!") {
- X = Pos.Center (),
- Y = Pos.Center (),
- Clicked = () => MessageBox.Query (20, 7, "Hi", "Neat?", "Yes", "No")
- });
- }
- }
- }
|