Changeset 1051 for Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs
- Timestamp:
- Jan 6, 2011, 4:25:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs
r1050 r1051 17 17 private Label lblVersion; 18 18 private Label label2; 19 private ProgressBar progressBar1; 19 20 /// <summary> 20 21 /// Required designer variable. … … 62 63 this.lblVersion = new System.Windows.Forms.Label(); 63 64 this.label2 = new System.Windows.Forms.Label(); 65 this.progressBar1 = new System.Windows.Forms.ProgressBar(); 64 66 this.SuspendLayout(); 65 67 // … … 110 112 this.label2.Text = "VISTA"; 111 113 // 114 // progressBar1 115 // 116 this.progressBar1.Location = new System.Drawing.Point(18, 207); 117 this.progressBar1.Name = "progressBar1"; 118 this.progressBar1.Size = new System.Drawing.Size(458, 14); 119 this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous; 120 this.progressBar1.TabIndex = 7; 121 // 112 122 // DSplash 113 123 // … … 116 126 this.ClientSize = new System.Drawing.Size(488, 252); 117 127 this.ControlBox = false; 128 this.Controls.Add(this.progressBar1); 118 129 this.Controls.Add(this.label2); 119 130 this.Controls.Add(this.lblVersion); … … 135 146 public delegate void dSetStatus(string sStatus); 136 147 public delegate void dAny(); 148 public delegate void dProgressBarSet(int number); 137 149 138 150 public void SetStatus(string sStatus) … … 145 157 } 146 158 147 System.Diagnostics.Debug.Assert(this.InvokeRequired == false);148 159 this.lblStatus.Text = sStatus; 149 this.Refresh();150 160 } 151 161 … … 166 176 this.Invoke(d); 167 177 } 178 179 public void RemoteProgressBarMaxSet(int max) 180 { 181 if (this.InvokeRequired == true) 182 { 183 dProgressBarSet d = new dProgressBarSet(RemoteProgressBarMaxSet); 184 this.Invoke(d, new object[] { max }); 185 return; 186 } 187 188 this.progressBar1.Maximum = max; 189 } 190 191 public void RemoteProgressBarValueSet(int val) 192 { 193 if (this.InvokeRequired == true) 194 { 195 dProgressBarSet d = new dProgressBarSet(RemoteProgressBarValueSet); 196 this.Invoke(d, new object[] { val }); 197 return; 198 } 199 200 this.progressBar1.Value = val; 201 } 202 168 203 } 169 204
Note:
See TracChangeset
for help on using the changeset viewer.