示例#1
0
 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");
 }
示例#2
0
 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");
 }