- Timestamp:
- 06/25/09 12:46:44 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ExecuterView.cs
r2088 r2094 12 12 public partial class ExecuterView : ViewBase { 13 13 private ExecuterBase executer; 14 public ExecuterView(ExecuterBase executer) { 14 public ExecuterView(ExecuterBase executer) 15 : base() { 15 16 this.executer = executer; 16 17 InitializeComponent(); 17 refreshTimer.Enabled = true; 18 maxActiveJobs.Value = executer.MaxActiveJobs; 19 executer.Changed += (sender, args) => UpdateControls(); 18 20 } 19 21 20 private void refreshTimer_Tick(object sender, EventArgs e) { 21 jobsList.DataSource = executer.GetJobs(); 22 protected override void UpdateControls() { 23 if (InvokeRequired) Invoke((Action)UpdateControls); 24 else { 25 base.UpdateControls(); 26 maxActiveJobs.Value = executer.MaxActiveJobs; 27 jobsList.DataSource = executer.GetJobs(); 28 jobsList.Refresh(); 29 } 22 30 } 23 31 24 private void maxActiveJobs UpDown_ValueChanged(object sender, EventArgs e) {32 private void maxActiveJobs_ValueChanged(object sender, EventArgs e) { 25 33 executer.MaxActiveJobs = Convert.ToInt32(maxActiveJobs.Value); 26 34 }
Note: See TracChangeset
for help on using the changeset viewer.