Example #1
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        dbConnection.Close ();

        Application.Quit ();
        a.RetVal = true;
    }
Example #2
0
    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;
 }
Example #4
0
    protected void OnDeleteEvent(object sender, DeleteEventArgs a)
    {
        Application.Quit ();
        a.RetVal = true;

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

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

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

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

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

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

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

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

        Application.Quit ();
        a.RetVal = true;
    }
Example #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;
     }
 }
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     Application.Invoke (delegate {
         if (model.Active) {
             model.CancelTask ();
         }
         Application.Quit ();
         a.RetVal = true;
     });
 }
Example #24
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     if (label2.Text == "Adios") {
         Application.Quit ();
         a.RetVal = true;
     } else {
         label2.Text = "Adios";
         Application.Run();
     }
 }
Example #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;
 }
 protected virtual void OnDelete(object o, Gtk.DeleteEventArgs args)
 {
     if (done)
     {
         return;
     }
     if (noCancel || !Cancel())
     {
         args.RetVal = true;
     }
 }
Example #28
0
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     if (_dirty)
     {
         a.RetVal = false;
         PromptToSave(() => Application.Quit());
     }
     else
     {
         Application.Quit();
         a.RetVal = true;
     }
 }
Example #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;
     }
 }
Example #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");
 }
Example #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;
        }
Example #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);
            }
        }
Example #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;
        }
Example #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;
        }
Example #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;
            }
        }
Example #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;
     }
 }
Example #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;
        }
Example #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;
    }
Example #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;
    }
Example #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);
     }
 }
Example #43
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs a)
 {
     Gtk.Application.Quit();
     a.RetVal = true;
 }
Example #44
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     SaveDebaters();
     ShowRanking.I.UpdateAll();
 }
Example #45
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     DoCancel();
 }
Example #46
0
 void OnDelete(object sender, Gtk.DeleteEventArgs args)
 {
     OnCloseWindow(sender, EventArgs.Empty);
     args.RetVal = true;
 }
Example #47
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Destroy();
 }
Example #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();
 }
Example #51
0
 private void OnDelete(object o, Gtk.DeleteEventArgs args)
 {
     Gtk.Application.Quit();
 }
Example #52
0
 protected void OnDeleteEvent(object sender, Gtk.DeleteEventArgs a)
 {
     Gtk.Application.Quit();
     a.RetVal = true;
 }
Example #53
0
 private void ErrorWindow_Closed(object sender, Gtk.DeleteEventArgs e)
 {
     e.RetVal = true;
     this.Hide();
 }
Example #54
0
 protected void onDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Destroy();
 }
 protected void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     Application.Quit();
     args.RetVal = true;
 }
Example #56
0
        private void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
        {
            bool cancel = !SaveAndClose();

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