예제 #1
0
파일: MainWindow.cs 프로젝트: joseginer/ad
    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
파일: Workbench.cs 프로젝트: rdafoe/Cage
 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
파일: MainWindow.cs 프로젝트: esterdam/ad
    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
파일: MainWindow.cs 프로젝트: jdliue/SiK
		/// <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
파일: MainWindow.cs 프로젝트: tmassey/mtos
 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
파일: Import.cs 프로젝트: balihb/basenji
 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
파일: MainWindow.cs 프로젝트: FerPerez13/ed
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     if (label2.Text == "Adios") {
         Application.Quit ();
         a.RetVal = true;
     } else {
         label2.Text = "Adios";
         Application.Run();
     }
 }
예제 #25
0
파일: MainWindow.cs 프로젝트: BigMo/webimg
 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
파일: Mon.cs 프로젝트: linwx2020/SiKening
        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
파일: YAWIP.cs 프로젝트: keefehiggins/YAWIP
    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
파일: YAWIP.cs 프로젝트: lyserbin/YAWIP
    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;
 }