private void RemoveToallWindow(object sender, Gtk.DeleteEventArgs e) { e.RetVal = true; Abstraction main = Abstraction.GetInstance(); this.Hide(); }
protected void windowDelete_event(object o, Gtk.DeleteEventArgs args) { // This avoids deleting the window args.RetVal = true; HideOnDelete(); }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { RAMTicker.Abort(); this.Hide(); Kind k = new Kind(); k.Show(); }
//Event handler for closing window protected void OnDeleteEvent(object sender, Gtk.DeleteEventArgs a) { //cancel any task that might be running loadingResultsCancellationSource.Cancel(); Gtk.Application.Quit(); a.RetVal = true; }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { chatManagerServer.RemoveUserFromChat(guid, src); foreach (IChat chatService in dest.Values) { chatService.Exit(guid, this.src); } WindowManager.getInstance().LeaveChat(guid, src); }
private void RemovePMWindow(object sender, Gtk.DeleteEventArgs e) { //e.RetVal = true; Abstraction main = Abstraction.GetInstance(); //main.WriteText("Removed PMWindow!"); this.PMWindowManager = PMWindowList.GetInstance(); this.PMWindowManager.DeletePMWindow(this.Id); this.Dispose(); }
/// <summary> /// Raises the delete event when the user attempts to close the application /// using the close button from the title bar. /// </summary> /// <param name='sender'> /// The application window (MainWindow). /// </param> /// <param name='args'> /// Arguments. /// </param> /// protected void OnDeleteEvent(object sender, Gtk.DeleteEventArgs args) { args.RetVal = !isQuitDisabled; if (!isQuitDisabled) { Gtk.Application.Quit(); } isQuitDisabled = false; }
void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args) { if (CanQuit() && !object.Equals(args.RetVal, true)) { Gtk.Application.Quit(); } else { args.RetVal = true; // cancel! } }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { this.Destroy(); Gtk.Application.Quit(); CDataFactory DataFactory = CDataFactory.GetDataFactory(); ClosePacket close = new ClosePacket(MainClass.getUserID()); DataFactory.SetSendBuffer(Packet.Serialize(close)); MainClass.SetRunning(false); }
void OnOptionsDialogDeleted(object sender, Gtk.DeleteEventArgs args) { TaskOptionsDialog dialog = sender as TaskOptionsDialog; if (dialog == null) { return; } if (options_dialogs.ContainsKey(dialog.Task)) { options_dialogs.Remove(dialog.Task); } }
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"); }
protected virtual void OnDeleteEvent(object sender, Gtk.DeleteEventArgs e) { Trace.Call(sender, e); try { if (NotificationAreaIconMode == NotificationAreaIconMode.Closed) { // showing the tray icon is handled in OnWindowStateEvent Hide(); // don't destroy the window nor quit smuxi! e.RetVal = true; return; } Frontend.Quit(); } catch (Exception ex) { Frontend.ShowException(this, ex); } }
void window_DeleteEvent(object o, Gtk.DeleteEventArgs args) { if (AutoDispose) { window.Hide(); if (window.Modal) { /*never destroy modal windows automagically*/ } else { window.Destroy(); } args.RetVal = true; //we handled this event ourselves } else //dont autodispose { window.Hide(); //just hide the window args.RetVal = true; //we handled this event } }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { _mandarDecisaoReset(false); this.Destroy(); }
static void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args) { args.RetVal = true; NSApplication.SharedApplication.Hide(NSApplication.SharedApplication); }
// TODO: Why not just hide the window here? /// <summary>Handler called when the window is closed.</summary> /// <remarks>This refuses to let the window close because that is /// handled by <see cref="OnWindowResponse" /> so it can be /// hidden instead.</remarks> public void OnWindowDeleteEvent(object o, Gtk.DeleteEventArgs args) { args.RetVal = true; }
void DeleteEvent(object obj, Gtk.DeleteEventArgs args) { Wrapped.Hide(); args.RetVal = true; }
static void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args) { args.RetVal = true; IdeApp.Workbench.RootWindow.Visible = false; }
/// <summary> /// Raises the delete event when the user attempts to close the application /// using the close button from the title bar. /// </summary> /// <param name='sender'> /// The application window (MainWindow). /// </param> /// <param name='args'> /// Arguments. /// </param> /// protected void OnDeleteEvent(object sender, Gtk.DeleteEventArgs args) { Gtk.Application.Quit(); args.RetVal = true; }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { System.Console.WriteLine("DELETE"); throw new Exception("DIALOG DELETE"); }
// forward other events // react to the [x]-button being pressed void PasswordEntry_DeleteEvent(object o, Gtk.DeleteEventArgs args) { OnAction(null, null); }
public void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args) { args.RetVal = !Handler.CloseWindow(); }
private static void HandleMainWindowClosed(object o, Gtk.DeleteEventArgs args) { var window = o as Gtk.Window; HandleExitApplication(window); }
void HandleCloseRequested(object o, Gtk.DeleteEventArgs args) { ApplicationContext.InvokeUserCode(delegate { args.RetVal = EventSink.OnCloseRequested(); }); }
static void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args) { args.RetVal = true; MacHideOthersHandler.RunMenuCommand(CarbonCommandID.Hide); }
protected void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args) { }
void HandleCloseRequested(object o, Gtk.DeleteEventArgs args) { args.RetVal = !PerformClose(true); }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { serialmon.MainClass.win.configfinished(); }
void MapWindow_DeleteEvent(object o, Gtk.DeleteEventArgs args) { buttonMapInWindow.Click(); args.RetVal = false; }
void MapWindow_DeleteEvent(object o, Gtk.DeleteEventArgs args) { args.RetVal = false; }