Changeset 1143 for Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs
- Timestamp:
- Apr 14, 2011, 8:33:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs
r1061 r1143 8 8 { 9 9 /// <summary> 10 /// Summary description for DSplash. 10 /// Program loading splash screen. Notice the numerous remote methods intended 11 /// to mickey mouse the form from another thread. 12 /// 13 /// I don't know of a better way of doing this right now. 11 14 /// </summary> 12 15 public class DSplash : System.Windows.Forms.Form … … 147 150 public delegate void dAny(); 148 151 public delegate void dProgressBarSet(int number); 152 public delegate DialogResult dMessageBox(IWin32Window owner, string message); 153 public delegate DialogResult dMessageBox2(IWin32Window owner, string message, string caption, MessageBoxButtons btns); 149 154 150 155 public void SetStatus(string sStatus) … … 165 170 } 166 171 172 public DialogResult RemoteMsgBox(string msg) 173 { 174 dMessageBox d = new dMessageBox(MessageBox.Show); 175 return (DialogResult)this.Invoke(d, this, msg); 176 } 177 178 public DialogResult RemoteMsgBox(string msg, string caption, MessageBoxButtons btns) 179 { 180 dMessageBox2 d = new dMessageBox2(MessageBox.Show); 181 return (DialogResult)this.Invoke(d, this, msg, caption, btns); 182 } 183 167 184 public void RemoteClose() 168 185 { 169 186 dAny d = new dAny(this.Close); 187 this.Invoke(d); 188 } 189 190 public void RemoteActivate() 191 { 192 dAny d = new dAny(this.Activate); 193 this.Invoke(d); 194 } 195 196 public void RemoteHide() 197 { 198 dAny d = new dAny(this.Hide); 170 199 this.Invoke(d); 171 200 }
Note:
See TracChangeset
for help on using the changeset viewer.