Changeset 1821


Ignore:
Timestamp:
2/12/2010 2:51:35 AM (2 years ago)
Author:
lowjoel
Message:

When the user closes the MainForm?, always call Application.Exit, since if Application.Run was not called with the main form then the closure of the form has no significance. Thanks to DavidHB for the report.

Location:
branches/eraser6/6.0/Eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser/MainForm.Designer.cs

    r1677 r1821  
    274274            this.Paint += new System.Windows.Forms.PaintEventHandler(this.MainForm_Paint); 
    275275            this.VisibleChanged += new System.EventHandler(this.MainForm_VisibleChanged); 
     276            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed); 
    276277            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); 
    277278            this.Resize += new System.EventHandler(this.MainForm_Resize); 
  • branches/eraser6/6.0/Eraser/MainForm.cs

    r1752 r1821  
    390390        } 
    391391 
     392        private void MainForm_FormClosed(object sender, FormClosedEventArgs e) 
     393        { 
     394            Application.Exit(); 
     395        } 
     396 
    392397        private void MainForm_VisibleChanged(object sender, EventArgs e) 
    393398        { 
Note: See TracChangeset for help on using the changeset viewer.