protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs a) { isAlive = false; if (parentWindow.isAlive) { if (parentWindow.childWindow == this) { parentWindow.childWindow = null; } parentWindow.SetFocusOn(); } MainClass.CloseWindow(o, a, "EditorWindow"); }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs a) { if (parentWindow != null) { if (parentWindow.isAlive) { parentWindow.SetFocusOn(); } } else if (parentWindowEd != null) { if (parentWindowEd.isAlive) { parentWindowEd.SetFocusOn(); } } MainClass.CloseWindow(o, a, "PreferencesWindow"); }