Convert TopLevel.Ready into event

This commit is contained in:
Artyom
2020-09-23 01:19:31 +03:00
committed by BDisp
parent db32add954
commit 47a2020bf4
3 changed files with 11 additions and 12 deletions

View File

@@ -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++;