mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Convert TopLevel.Ready into event
This commit is contained in:
@@ -966,17 +966,12 @@ namespace Terminal.Gui {
|
||||
return true;
|
||||
});
|
||||
|
||||
t.Ready = () => {
|
||||
FirstDialogToplevel ();
|
||||
};
|
||||
t.Ready += FirstDialogToplevel;
|
||||
|
||||
void FirstDialogToplevel ()
|
||||
{
|
||||
var od = new OpenDialog {
|
||||
Ready = () => {
|
||||
SecoundDialogToplevel ();
|
||||
}
|
||||
};
|
||||
var od = new OpenDialog();
|
||||
od.Ready += SecoundDialogToplevel;
|
||||
|
||||
Application.MainLoop.AddTimeout (TimeSpan.FromMilliseconds (100), (_) => {
|
||||
count1++;
|
||||
|
||||
Reference in New Issue
Block a user