public static void ShowDialog() { if (Dlg != null) { throw null; // never } Dlg = new LevelEditorDlg(); Dlg.Show(); }
public static void CloseDialog() { Dlg.Close(); Dlg.Dispose(); Dlg = null; }