mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
Convert TopLevel.Ready into event
This commit is contained in:
@@ -96,10 +96,14 @@ namespace UICatalog {
|
||||
scenario.Init (Application.Top, _baseColorScheme);
|
||||
scenario.Setup ();
|
||||
scenario.Run ();
|
||||
_top.Ready += () => {
|
||||
|
||||
static void ReadyHandler ()
|
||||
{
|
||||
_rightPane.SetFocus ();
|
||||
_top.Ready = null;
|
||||
};
|
||||
_top.Ready -= ReadyHandler;
|
||||
}
|
||||
|
||||
_top.Ready += ReadyHandler;
|
||||
|
||||
#if DEBUG_IDISPOSABLE
|
||||
// After the scenario runs, validate all Responder-based instances
|
||||
|
||||
Reference in New Issue
Block a user