Changeset 784


Ignore:
Timestamp:
12/11/08 06:54:43 (6 years ago)
Author:
lowjoel
Message:

-For consistency, I'm changing all calls to Control.Hide and Control.Show to Control.Visible = false and Control.Visible = true respectively
-When the MainForm? is asked to be shown, assume it is from the system notification area and activate the form as well

Location:
branches/eraser6/Eraser
Files:
3 edited

Legend:

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

    r513 r784  
    183183            this.Name = "MainForm"; 
    184184            this.Paint += new System.Windows.Forms.PaintEventHandler(this.MainForm_Paint); 
     185            this.VisibleChanged += new System.EventHandler(this.MainForm_VisibleChanged); 
    185186            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); 
    186187            this.Resize += new System.EventHandler(this.MainForm_Resize); 
  • branches/eraser6/Eraser/MainForm.cs

    r775 r784  
    231231            else if (HideWhenMinimised) 
    232232            { 
    233                 Hide(); 
     233                Visible = false; 
    234234            } 
    235235        } 
     
    346346            { 
    347347                e.Cancel = true; 
    348                 Hide(); 
     348                Visible = false; 
     349            } 
     350        } 
     351 
     352        private void MainForm_VisibleChanged(object sender, EventArgs e) 
     353        { 
     354            if (Visible) 
     355            { 
     356                WindowState = FormWindowState.Normal; 
     357                Activate(); 
    349358            } 
    350359        } 
     
    353362        { 
    354363            Visible = true; 
    355             WindowState = FormWindowState.Normal; 
    356             Activate(); 
    357364        } 
    358365 
  • branches/eraser6/Eraser/UpdateForm.cs

    r659 r784  
    140140 
    141141            progressPanel.Visible = false; 
    142             updatesPanel.Show(); 
     142            updatesPanel.Visible = true; 
    143143 
    144144            //First list all available mirrors 
     
    236236        { 
    237237            updatesPanel.Visible = false; 
    238             downloadingPnl.Show(); 
     238            downloadingPnl.Visible = true; 
    239239            List<UpdateManager.Update> updatesToInstall = 
    240240                new List<UpdateManager.Update>(); 
     
    356356 
    357357            downloadingPnl.Visible = false; 
    358             installingPnl.Show(); 
     358            installingPnl.Visible = true; 
    359359 
    360360            foreach (ListViewItem item in downloadingLv.Items) 
Note: See TracChangeset for help on using the changeset viewer.