public virtual void windowClosing(WindowEvent @event)
 {
   if (@event.getWindow() != this)
     return;
   ((Window) this).dispose();
   System.exit(0);
 }
Beispiel #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();
        }
Beispiel #3
0
 public void windowActivated(WindowEvent e)
 {
 }
Beispiel #4
0
        public void RaiseFormClosed(WindowEvent e)
        {
            if (this.FormClosed != null)
                this.FormClosed(this, new FormClosedEventArgs(CloseReason.None));

        }
Beispiel #5
0
 public void windowOpened(WindowEvent e)
 {
 }
Beispiel #6
0
 public void windowIconified(WindowEvent e)
 {
 }
Beispiel #7
0
 public void windowClosing(WindowEvent e)
 {
     if (Closing != null)
         Closing(e);
 }
Beispiel #8
0
 public void windowClosed(WindowEvent e)
 {
     if (Closed != null)
         Closed(e);
 }
Beispiel #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)
		{
		}
Beispiel #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)
		{
		}
 public virtual void windowOpened(WindowEvent @event)
 {
 }
 public virtual void windowIconified(WindowEvent @event)
 {
 }
 public virtual void windowDeactivated(WindowEvent @event)
 {
 }
 public virtual void windowClosed(WindowEvent @event)
 {
 }