示例#1
0
        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();
        }
示例#4
0
        //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;
        }
示例#5
0
 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);
 }
示例#6
0
        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();
        }
示例#7
0
        /// <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;
        }
示例#8
0
 void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     if (CanQuit() && !object.Equals(args.RetVal, true))
     {
         Gtk.Application.Quit();
     }
     else
     {
         args.RetVal = true;                 // cancel!
     }
 }
示例#9
0
        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);
        }
示例#10
0
        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);
            }
        }
示例#11
0
 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");
 }
示例#12
0
        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);
            }
        }
示例#13
0
 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();
 }
示例#15
0
 static void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     args.RetVal = true;
     NSApplication.SharedApplication.Hide(NSApplication.SharedApplication);
 }
示例#16
0
 //  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;
 }
示例#17
0
 void DeleteEvent(object obj, Gtk.DeleteEventArgs args)
 {
     Wrapped.Hide();
     args.RetVal = true;
 }
示例#18
0
 static void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     args.RetVal = true;
     IdeApp.Workbench.RootWindow.Visible = false;
 }
示例#19
0
 /// <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");
 }
示例#21
0
 // forward other events
 // react to the [x]-button being pressed
 void PasswordEntry_DeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     OnAction(null, null);
 }
示例#22
0
文件: GtkWindow.cs 项目: wnf0000/Eto
 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);
        }
示例#24
0
 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);
 }
示例#26
0
 protected void HandleDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
 }
示例#27
0
 void HandleCloseRequested(object o, Gtk.DeleteEventArgs args)
 {
     args.RetVal = !PerformClose(true);
 }
示例#28
0
 protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     serialmon.MainClass.win.configfinished();
 }
示例#29
0
 void MapWindow_DeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     buttonMapInWindow.Click();
     args.RetVal = false;
 }
示例#30
0
 void MapWindow_DeleteEvent(object o, Gtk.DeleteEventArgs args)
 {
     args.RetVal = false;
 }