protected void OnDeleteEvent(object sender, DeleteEventArgs a) { dbConnection.Close (); Application.Quit (); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { client.Disconnect (); Application.Quit (); a.RetVal = true; }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { Application.Quit(); Tools.AllowedToRun = false; Environment.Exit(0); //args.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; KeyKeeper.dbConnector.getdbAcces().close(); }
static void NoTrayWindowDeleteEvent(object o, Gtk.DeleteEventArgs args) { BestWindow win = (BestWindow)o; win.StoreSettingsInConf(false); Application.Quit(); }
/// <summary> /// The on delete event. /// </summary> protected void OnDeleteEvent(object sender, DeleteEventArgs a) { CommLayerManager.Instance.Dispose(); Application.Quit(); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { dock.SaveLayouts( "config.layout" ); toolbarFrame.SaveStatus("toolbar.status"); Application.Quit (); a.RetVal = true; }
protected void OnDeleteEvent (object o, DeleteEventArgs args) { if (scanningThread != null && scanningThread.IsAlive) scanningThread.Abort(); Application.Quit(); }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { ApplicationContext.Instance.DbConnection.Close (); Application.Quit (); a.RetVal = true; }
/// <summary> /// Called when [delete event]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="a">The <see cref="DeleteEventArgs" /> instance containing the event data.</param> protected void OnDeleteEvent(object sender, DeleteEventArgs a) { this.waveWidget.Destroy(); Application.Quit(); a.RetVal = true; }
public static void OnDelete(object obj, DeleteEventArgs args) { Console.WriteLine (window.Toplevel.Handle); Console.WriteLine (item.Toplevel.Handle); Console.WriteLine (label.Toplevel.Handle); Application.Quit (); }
public void OnDeleteEvent(object o, DeleteEventArgs args) { // hecho para implementar el delegado DeleteEventHandler que se usa para // el evento Gtk.Widget.DeleteEvent Event, de la clase Widget claro Console.WriteLine("Cerrando la aplicacion .............................."); Application.Quit (); args.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { quit = true; readThread.Join(); sp.Close(); Application.Quit (); a.RetVal = true; }
void window_DeleteEvent(object o, DeleteEventArgs args) { if(Focused != null) { if(!Focused.Validated) args.RetVal=true; } }
/// <summary> /// Handles the window DeleteEvent by instigating the termination of the application. /// </summary> /// <param name='sender'> /// Sender. /// </param> /// <param name='a'> /// A. /// </param> private void delete (object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; if (QuitEvent != null) QuitEvent (); }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { if (_streamer != null) _streamer.Dispose(); GtkApplication.Quit (); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Program.SaveSettings(); Application.Quit (); a.RetVal = true; Environment.Exit(0); }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { _TaskQueue.Dispose (); _LogQueue.Dispose (); _ProgressQueue.Dispose (); Application.Quit (); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { this.Scanner.Close(); this.muteImage.Destroy(); this.audioImage.Destroy(); Application.Quit(); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { iserver.Dispose(); dserver.Dispose(); Application.Quit (); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { this.SoundFile.Dispose(); this.SoundSystem.CloseSystem(); this.SoundSystem.Dispose(); Application.Quit (); a.RetVal = true; }
private void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { if (import != null && import.IsBusy) { MsgDialog.ShowError(this, S._("Import in progress"), S._("You must stop the import before closing this window.")); args.RetVal = true; } }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Application.Invoke (delegate { if (model.Active) { model.CancelTask (); } Application.Quit (); a.RetVal = true; }); }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { if (label2.Text == "Adios") { Application.Quit (); a.RetVal = true; } else { label2.Text = "Adios"; Application.Run(); } }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { foreach (SitePlugin plugin in MainClass.Plugins) { foreach(WebSite site in plugin.Sites) { site.Running = false; } } Application.Quit (); a.RetVal = true; }
// // WINDOW DELETE HANDLER // void OnWorkbenchDeleteEvent(object o, DeleteEventArgs args) { SignalArgs sa = (SignalArgs) args; WorkbenchSingleton.Instance.DeclareParentViewActive (o); ICommand command = CommandFactory.CreateCommand("CloseWindowCommand"); command.Run (); // retval true avoids closing the window // the window should have been closed by the command // and if no windows left, the application quitted sa.RetVal = true; }
protected virtual void OnDelete(object o, Gtk.DeleteEventArgs args) { if (done) { return; } if (noCancel || !Cancel()) { args.RetVal = true; } }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { if (_dirty) { a.RetVal = false; PromptToSave(() => Application.Quit()); } else { Application.Quit(); a.RetVal = true; } }
private void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { if (!scanCompleted) { MsgDialog.ShowError(this, S._("Scan in progress"), S._("You must stop scanning before closing this window.")); args.RetVal = true; } else { bool cancel = !SaveAndClose(); args.RetVal = cancel; } }
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 virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { _Provider.StopDiscovering(); _UpdateThread = null; foreach (IDevice connectedDevice in new List <IDevice>(_Provider.ConnectedDevices)) { connectedDevice.Disconnect(); } Environment.Exit(1); args.RetVal = true; }
protected void delete_event(object o, Gtk.DeleteEventArgs args) { // stop the timer the next time it runs is_deleted = true; // close the port if it's open disconnect(); if (QuitEvent != null) { QuitEvent(); } }
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); } }
private void Window_DeleteEvent(object sender, Gtk.DeleteEventArgs a) { // Release all GTK ressources Unrealize(); // Release all AlienEngine resources Engine.Stop(); // Quit the application Gtk.Application.Quit(); // Every things is done a.RetVal = true; }
protected void OnDelete(object o, DeleteEventArgs args) { // Remove all pages while(ntbItems.NPages > 0) ntbItems.RemovePage(0); // Clear the dictionary m_CurrentItems.Clear(); // Then Hide Hide (); args.RetVal = true; }
protected void on_window1_delete_event(object sender, Gtk.DeleteEventArgs args) { if (this.findThread != null) { this.stopThread = true; this.findThread.Join(); this.findThread = null; } if (this.slideShowTimer != 0) { GLib.Timeout.Remove(this.slideShowTimer); this.slideShowTimer = 0; } }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Gtk.MessageDialog md = new Gtk.MessageDialog (this, Gtk.DialogFlags.Modal, Gtk.MessageType.Question, Gtk.ButtonsType.YesNo, Catalog.GetString ("This will close the application.\n\nAre you sure you want to exit?")); md.Title = Catalog.GetString ("Exit"); int res = md.Run (); md.Destroy (); if (res == (int) Gtk.ResponseType.Yes) { IsLogout = false; Quit (); a.RetVal = false; } else a.RetVal = true; }
private void OnDeleteEvent( object sender, DeleteEventArgs a ) { var stage = m_updater.Stage; if( stage == GameUpdateStage.NotStarted || stage == GameUpdateStage.Finished || stage == GameUpdateStage.Cancelled || stage == GameUpdateStage.Failed ) { Application.Quit(); } else { m_updater.Cancel(); a.RetVal = true; } }
protected void OnDeleteEvent(object sender, DeleteEventArgs e) { if(this.isFirstRun) { if(allowExit) { e.RetVal = false; return; } e.RetVal = true; return; } e.RetVal = false; return; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { #region Configs Configs.FilePath = txtFilePath.Text; Configs.RefreshRate = (uint)spinRefreshRate.Value; Configs.VlcHostname = txtVlcHostname.Text; Configs.VlcPort = (uint)spinVlcPort.Value; Configs.VlcPassword = txtVlcPassword.Text; Configs.Save (); #endregion if (worker != null && worker.IsAlive) worker.Abort (); Application.Quit (); a.RetVal = true; }
protected void OnDeleteEvent(object sender, DeleteEventArgs a) { #region Configs Configs.FilePath = txtFilePath.Text; Configs.RefreshRate = (uint)spinRefreshRate.Value; Configs.VlcHostname = txtVlcHostname.Text; Configs.VlcPort = (uint)spinVlcPort.Value; Configs.VlcPassword = txtVlcPassword.Text; Configs.SpotifyFormat = txtSpotifyFormat.Text; Configs.Save (); #endregion stop (); trayIcon.Dispose (); Application.Quit (); a.RetVal = true; }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { // only close window if change of data file is successful args.RetVal = true; try { // tournament file changed? if (AppSettings.I.TournamentFile != entryTournamentFile.Text) { Tournament.I.Save(entryTournamentFile.Text); AppSettings.I.TournamentFile = entryTournamentFile.Text; } // save other stuff AppSettings.I.DeleteTexFile = cbDeleteTexFile.Active; Tournament.I.Title = entryTournamentTitle.Text; // can close window args.RetVal = false; } catch (Exception e) { MiscHelpers.ShowMessage(this, "Could not save settings. " + e.Message, MessageType.Error); } }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs a) { Gtk.Application.Quit(); a.RetVal = true; }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { SaveDebaters(); ShowRanking.I.UpdateAll(); }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { DoCancel(); }
void OnDelete(object sender, Gtk.DeleteEventArgs args) { OnCloseWindow(sender, EventArgs.Empty); args.RetVal = true; }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { Destroy(); }
private void OnWindowDelete(object o, Gtk.DeleteEventArgs args) { // FIXME: Destroy window Hide(); args.RetVal = true; }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { this.Destroy(); }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { Destroy(); Gtk.Application.Quit(); }
private void OnDelete(object o, Gtk.DeleteEventArgs args) { Gtk.Application.Quit(); }
protected void OnDeleteEvent(object sender, Gtk.DeleteEventArgs a) { Gtk.Application.Quit(); a.RetVal = true; }
private void ErrorWindow_Closed(object sender, Gtk.DeleteEventArgs e) { e.RetVal = true; this.Hide(); }
protected void onDeleteEvent(object o, Gtk.DeleteEventArgs args) { Destroy(); }
protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { Application.Quit(); args.RetVal = true; }
private void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { bool cancel = !SaveAndClose(); args.RetVal = cancel; // cancel window deleting }
protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args) { cancel = true; }
void MapWindow_DeleteEvent(object o, Gtk.DeleteEventArgs args) { buttonMapInWindow.Click(); args.RetVal = false; }
private void Close(object sender, Gtk.DeleteEventArgs e) { this.ErrorWindow_Closed(sender, e); }
private void OnDelete(object o, Gtk.DeleteEventArgs args) { Close(); args.RetVal = true; }