mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Updated Run<T> Scenario
This commit is contained in:
@@ -6,7 +6,7 @@ namespace UICatalog.Scenarios;
|
||||
[ScenarioCategory ("Top Level Windows")]
|
||||
public class RunTExample : Scenario
|
||||
{
|
||||
public override void Init ()
|
||||
public override void Main ()
|
||||
{
|
||||
// No need to call Init if Application.Run<T> is used
|
||||
Application.Run<ExampleWindow> ();
|
||||
@@ -14,8 +14,6 @@ public class RunTExample : Scenario
|
||||
Application.Top.Dispose ();
|
||||
}
|
||||
|
||||
public override void Run () { }
|
||||
|
||||
public class ExampleWindow : Window
|
||||
{
|
||||
private readonly TextField _usernameText;
|
||||
|
||||
Reference in New Issue
Block a user