Changeset 1421


Ignore:
Timestamp:
12/23/2009 6:35:38 AM (5 years ago)
Author:
lowjoel
Message:

Veto the uploading dialog from closing if the upload/compress is in progress; cancel the upload first.

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

Legend:

Unmodified
Added
Removed
  • branches/eraser6/BlackBox/Eraser/BlackBoxUploadForm.Designer.cs

    r1420 r1421  
    9999            this.Name = "BlackBoxUploadForm"; 
    100100            this.TopMost = true; 
     101            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.BlackBoxUploadForm_FormClosing); 
    101102            this.ButtonsPnl.ResumeLayout(false); 
    102103            this.ResumeLayout(false); 
  • branches/eraser6/BlackBox/Eraser/BlackBoxUploadForm.cs

    r1418 r1421  
    5050        } 
    5151 
     52        private void BlackBoxUploadForm_FormClosing(object sender, FormClosingEventArgs e) 
     53        { 
     54            if (UploadWorker.IsBusy) 
     55            { 
     56                UploadWorker.CancelAsync(); 
     57                e.Cancel = true; 
     58            } 
     59        } 
     60 
    5261        private void UploadWorker_DoWork(object sender, DoWorkEventArgs e) 
    5362        { 
Note: See TracChangeset for help on using the changeset viewer.