Changeset 1490
- Timestamp:
- 1/9/2010 8:39:36 AM (3 years ago)
- Location:
- branches/eraser6/6.0/Eraser
- Files:
-
- 3 edited
-
MainForm.cs (modified) (4 diffs)
-
SchedulerPanel.cs (modified) (2 diffs)
-
SettingsPanel.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser/MainForm.cs
r1429 r1490 46 46 { 47 47 InitializeComponent(); 48 contentPanel.Controls.Add(SchedulerPage); 49 contentPanel.Controls.Add(SettingsPage); 50 CreateControl(); 51 48 52 UXThemeApi.UpdateControlTheme(this); 49 53 UXThemeApi.UpdateControlTheme(notificationMenu); 50 51 CreateControl();52 SettingsPage.CreateControl();53 SchedulerPage.CreateControl();54 54 55 55 //Connect to the executor task processing and processed events. … … 62 62 //Set the docking style for each of the pages 63 63 SchedulerPage.Dock = DockStyle.Fill; 64 SettingsPage.Visible = false; 64 65 65 66 //Show the default page. … … 102 103 { 103 104 contentPanel.SuspendLayout(); 104 contentPanel.Controls.Remove(oldPage); 105 contentPanel.Controls.Add(CurrPage); 106 105 106 //Hide the old page before showing the new one 107 if (oldPage != null) 108 oldPage.Visible = false; 109 110 //If the page is not set to dock, we need to specify the dimensions of the page 111 //so it fits properly. 107 112 if (CurrPage.Dock == DockStyle.None) 108 113 { … … 113 118 CurrPage.Width = contentPanel.Width; 114 119 } 120 121 //Show the new page then bring it to the top of the z-order. 122 CurrPage.Visible = true; 123 CurrPage.BringToFront(); 115 124 contentPanel.ResumeLayout(); 116 125 } -
branches/eraser6/6.0/Eraser/SchedulerPanel.cs
r1360 r1490 43 43 { 44 44 InitializeComponent(); 45 UXThemeApi.UpdateControlTheme(this);46 45 UXThemeApi.UpdateControlTheme(schedulerDefaultMenu); 47 46 … … 254 253 //Show a balloon to inform the user 255 254 MainForm parent = (MainForm)FindForm(); 256 if (parent != null && parent.WindowState == FormWindowState.Minimized || !parent.Visible) 255 256 //TODO: Is this still needed? 257 if (parent == null) 258 throw new InvalidOperationException(); 259 if (parent.WindowState == FormWindowState.Minimized || !parent.Visible) 257 260 { 258 261 string message = null; -
branches/eraser6/6.0/Eraser/SettingsPanel.cs
r1482 r1490 43 43 { 44 44 InitializeComponent(); 45 UXThemeApi.UpdateControlTheme(this);46 45 47 46 //For new plugins, register the callback.
Note: See TracChangeset
for help on using the changeset viewer.
