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

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