- Timestamp:
- 08/14/09 19:56:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherView.cs
r2258 r2290 11 11 namespace HeuristicLab.CEDMA.Server { 12 12 public partial class DispatcherView : ViewBase { 13 private DispatcherBasedispatcher;14 public DispatcherView( DispatcherBasedispatcher)13 private SimpleDispatcher dispatcher; 14 public DispatcherView(SimpleDispatcher dispatcher) 15 15 : base() { 16 16 this.dispatcher = dispatcher; … … 26 26 } else { 27 27 base.UpdateControls(); 28 algorithmsListBox.Items.Clear(); 28 29 targetVariableList.Items.Clear(); 29 30 inputVariableList.Items.Clear(); … … 35 36 foreach (string inputVar in dispatcher.InputVariables) { 36 37 inputVariableList.Items.Add(inputVar, false); 38 } 39 40 foreach (HeuristicLab.Modeling.IAlgorithm algo in dispatcher.Algorithms) { 41 algorithmsListBox.Items.Add(algo, false); 37 42 } 38 43 targetVariableList.ClearSelected(); … … 83 88 } 84 89 } 90 91 private void algorithmsListBox_ItemCheck(object sender, ItemCheckEventArgs e) { 92 if(e.NewValue == CheckState.Checked) { 93 dispatcher.EnableAlgorithm((HeuristicLab.Modeling.IAlgorithm)algorithmsListBox.Items[e.Index]); 94 } else if(e.NewValue == CheckState.Unchecked) { 95 dispatcher.DisableAlgorithm((HeuristicLab.Modeling.IAlgorithm)algorithmsListBox.Items[e.Index]); 96 } 97 } 85 98 } 86 99 }
Note: See TracChangeset
for help on using the changeset viewer.