public override void Run() { Top?.Dispose(); Top = new Toplevel(new Rect(0, 0, Application.Driver.Cols, Application.Driver.Rows)); var menu = new MenuBar(new MenuBarItem [] { new MenuBarItem("_Файл", new MenuItem [] { new MenuItem("_Создать", "Creates new file", null), new MenuItem("_Открыть", "", null), new MenuItem("Со_хранить", "", null), new MenuItem("_Выход", "", () => Application.RequestStop()) }), new MenuBarItem("_Edit", new MenuItem [] { new MenuItem("_Copy", "", null), new MenuItem("C_ut", "", null), new MenuItem("_Paste", "", null) }) }); Top.Add(menu); // BUGBUG: #437 This being commented out causes menu to mis-behave //var win = new Window ($"Scenario: {GetName ()}") { // X = 0, // Y = 1, // Width = Dim.Fill (), // Height = Dim.Fill () //}; //ntop.Add (win); base.Run(); }
//-------------------------------------------------------------------------------------------------------------------- // - Dispose (Implementation) //-------------------------------------------------------------------------------------------------------------------- public new void Dispose() { Top.Dispose(); Body?.Dispose(); Bottom?.Dispose(); base.Dispose(); }
public override void Run() { Top.Dispose(); Application.Run <MainApp> (); Top.Dispose(); }
public void Dispose() { DisposePropertyChangedEvent(); Top.Dispose(); Front.Dispose(); Left.Dispose(); Rear.Dispose(); Right.Dispose(); }
public override void Dispose() { Bottom.Dispose(); FileLarge.Dispose(); FileSmall.Dispose(); FolderClosed.Dispose(); FolderOpen.Dispose(); Top.Dispose(); TopAlt.Dispose(); base.Dispose(); }
private void oyunuBitir() { timerGuncelleyen.Stop(); panelYonet.panelSifirla(); oyuncu = null; top.Dispose(); skorKaydet frm2 = new skorKaydet(skor); this.Hide(); bgSound.controls.stop(); frm2.ShowDialog(); this.Close(); }