public virtual void windowClosing(WindowEvent @event)
 {
   if (@event.getWindow() != this)
     return;
   ((Window) this).dispose();
   System.exit(0);
 }
Esempio n. 2
0
        public void RaiseFormClosing(WindowEvent e)
        {
            var args = new FormClosingEventArgs(CloseReason.None, false);

            if (this.FormClosing != null)
                this.FormClosing(this, args);

            if (args.Cancel)
                return;

            // If the program does not explicitly hide or dispose the window while 
            // processing this event, the window close operation will be cancelled.


            this.Dispose();
        }
Esempio n. 3
0
 public void windowActivated(WindowEvent e)
 {
 }
Esempio n. 4
0
        public void RaiseFormClosed(WindowEvent e)
        {
            if (this.FormClosed != null)
                this.FormClosed(this, new FormClosedEventArgs(CloseReason.None));

        }
Esempio n. 5
0
 public void windowOpened(WindowEvent e)
 {
 }
Esempio n. 6
0
 public void windowIconified(WindowEvent e)
 {
 }
Esempio n. 7
0
 public void windowClosing(WindowEvent e)
 {
     if (Closing != null)
         Closing(e);
 }
Esempio n. 8
0
 public void windowClosed(WindowEvent e)
 {
     if (Closed != null)
         Closed(e);
 }
Esempio n. 9
0
		/// <summary>
		/// Processes window state event occuring on this window by
		/// dispatching them to any registered <code>WindowStateListener</code>
		/// objects.
		/// </summary>
		protected void processWindowStateEvent(WindowEvent @e)
		{
		}
Esempio n. 10
0
		/// <summary>
		/// Processes window focus event occuring on this window by
		/// dispatching them to any registered WindowFocusListener objects.
		/// </summary>
		protected void processWindowFocusEvent(WindowEvent @e)
		{
		}
Esempio n. 11
0
 public virtual void windowOpened(WindowEvent @event)
 {
 }
Esempio n. 12
0
 public virtual void windowIconified(WindowEvent @event)
 {
 }
Esempio n. 13
0
 public virtual void windowDeactivated(WindowEvent @event)
 {
 }
Esempio n. 14
0
 public virtual void windowClosed(WindowEvent @event)
 {
 }