Пример #1
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        dbConnection.Close ();

        Application.Quit ();
        a.RetVal = true;
    }
Пример #2
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        client.Disconnect ();

        Application.Quit ();
        a.RetVal = true;
    }
Пример #3
0
 protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Application.Quit();
     Tools.AllowedToRun = false;
     Environment.Exit(0);
     //args.RetVal = true;
 }
Пример #4
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        Application.Quit ();
        a.RetVal = true;

        KeyKeeper.dbConnector.getdbAcces().close();
    }
Пример #5
0
        static void NoTrayWindowDeleteEvent(object o, Gtk.DeleteEventArgs args)
        {
            BestWindow win = (BestWindow)o;

            win.StoreSettingsInConf(false);
            Application.Quit();
        }
Пример #6
0
    /// <summary>
    /// The on delete event.
    /// </summary>
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        CommLayerManager.Instance.Dispose();

        Application.Quit();
        a.RetVal = true;
    }
Пример #7
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     dock.SaveLayouts( "config.layout" );
     toolbarFrame.SaveStatus("toolbar.status");
     Application.Quit ();
     a.RetVal = true;
 }
Пример #8
0
 protected void OnDeleteEvent (object o, DeleteEventArgs args)
 {
     if (scanningThread != null && scanningThread.IsAlive)
         scanningThread.Abort();
     
     Application.Quit();
 }
Пример #9
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        ApplicationContext.Instance.DbConnection.Close ();

        Application.Quit ();
        a.RetVal = true;
    }
Пример #10
0
    /// <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;
    }      
Пример #11
0
 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 ();
 }
Пример #12
0
 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;
 }
Пример #13
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     quit = true;
     readThread.Join();
     sp.Close();
     Application.Quit ();
     a.RetVal = true;
 }
Пример #14
0
        void window_DeleteEvent(object o, DeleteEventArgs args)
        {
            if(Focused != null) {

                if(!Focused.Validated)
                    args.RetVal=true;
            }
        }
Пример #15
0
		/// <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 ();
		}
Пример #16
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        if (_streamer != null)
            _streamer.Dispose();

        GtkApplication.Quit ();
        a.RetVal = true;
    }
Пример #17
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        Program.SaveSettings();
        Application.Quit ();
        a.RetVal = true;

        Environment.Exit(0);
    }
Пример #18
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     _TaskQueue.Dispose ();
     _LogQueue.Dispose ();
     _ProgressQueue.Dispose ();
     Application.Quit ();
     a.RetVal = true;
 }
Пример #19
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     this.Scanner.Close();
     this.muteImage.Destroy();
     this.audioImage.Destroy();
     Application.Quit();
     a.RetVal = true;
 }
Пример #20
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        iserver.Dispose();
        dserver.Dispose();

        Application.Quit ();
        a.RetVal = true;
    }
Пример #21
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        this.SoundFile.Dispose();
        this.SoundSystem.CloseSystem();
        this.SoundSystem.Dispose();

        Application.Quit ();
        a.RetVal = true;
    }
Пример #22
0
 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;
     }
 }
Пример #23
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     Application.Invoke (delegate {
         if (model.Active) {
             model.CancelTask ();
         }
         Application.Quit ();
         a.RetVal = true;
     });
 }
Пример #24
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     if (label2.Text == "Adios") {
         Application.Quit ();
         a.RetVal = true;
     } else {
         label2.Text = "Adios";
         Application.Run();
     }
 }
Пример #25
0
 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;
 }
Пример #27
0
 protected virtual void OnDelete(object o, Gtk.DeleteEventArgs args)
 {
     if (done)
     {
         return;
     }
     if (noCancel || !Cancel())
     {
         args.RetVal = true;
     }
 }
Пример #28
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     if (_dirty)
     {
         a.RetVal = false;
         PromptToSave(() => Application.Quit());
     }
     else
     {
         Application.Quit();
         a.RetVal = true;
     }
 }
Пример #29
0
 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;
     }
 }
Пример #30
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");
 }
Пример #31
0
        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;
        }
Пример #32
0
        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);
            }
        }
Пример #34
0
        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;
        }
Пример #35
0
        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;
        }
Пример #36
0
        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;
            }
        }
Пример #37
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;
     }
 }
Пример #39
0
        protected void OnDeleteEvent(object sender, DeleteEventArgs e)
        {
            if(this.isFirstRun)
            {
                if(allowExit)
                {
                    e.RetVal = false;
                    return;
                }
                e.RetVal = true;
                return;
            }

            e.RetVal = false;
            return;
        }
Пример #40
0
    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;
    }
Пример #41
0
    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;
    }
Пример #42
0
 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);
     }
 }
Пример #43
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs a)
 {
     Gtk.Application.Quit();
     a.RetVal = true;
 }
Пример #44
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     SaveDebaters();
     ShowRanking.I.UpdateAll();
 }
Пример #45
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     DoCancel();
 }
Пример #46
0
 void OnDelete(object sender, Gtk.DeleteEventArgs args)
 {
     OnCloseWindow(sender, EventArgs.Empty);
     args.RetVal = true;
 }
Пример #47
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Destroy();
 }
Пример #48
0
 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();
 }
Пример #51
0
 private void OnDelete(object o, Gtk.DeleteEventArgs args)
 {
     Gtk.Application.Quit();
 }
Пример #52
0
 protected void OnDeleteEvent(object sender, Gtk.DeleteEventArgs a)
 {
     Gtk.Application.Quit();
     a.RetVal = true;
 }
Пример #53
0
 private void ErrorWindow_Closed(object sender, Gtk.DeleteEventArgs e)
 {
     e.RetVal = true;
     this.Hide();
 }
Пример #54
0
 protected void onDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Destroy();
 }
 protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Application.Quit();
     args.RetVal = true;
 }
Пример #56
0
        private void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
        {
            bool cancel = !SaveAndClose();

            args.RetVal = cancel;             // cancel window deleting
        }
Пример #57
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     cancel = true;
 }
Пример #58
0
 void MapWindow_DeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     buttonMapInWindow.Click();
     args.RetVal = false;
 }
Пример #59
0
 private void Close(object sender, Gtk.DeleteEventArgs e)
 {
     this.ErrorWindow_Closed(sender, e);
 }
Пример #60
0
 private void OnDelete(object o, Gtk.DeleteEventArgs args)
 {
     Close();
     args.RetVal = true;
 }