- Timestamp:
- 08/03/08 23:00:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/GPOperatorLibraryEditor.cs
r423 r429 33 33 using HeuristicLab.Operators; 34 34 using HeuristicLab.Random; 35 using HeuristicLab.Functions; 35 36 36 37 namespace HeuristicLab.StructureIdentification { … … 54 55 55 56 foreach(IOperator op in library.Group.Operators) { 56 if(op.GetVariable( GPOperatorLibrary.MANIPULATION) != null) {57 if(op.GetVariable(FunctionBase.MANIPULATION) != null) { 57 58 ListViewItem item = new ListViewItem(); 58 59 item.Text = op.Name; … … 61 62 mutationListView.Items.Add(item); 62 63 } 63 if(op.GetVariable( GPOperatorLibrary.INITIALIZATION) != null) {64 if(op.GetVariable(FunctionBase.INITIALIZATION) != null) { 64 65 ListViewItem item = new ListViewItem(); 65 66 item.Name = op.Name; … … 74 75 private void GPOperatorLibraryView_OperatorAdded(object sender, EventArgs e) { 75 76 IOperator op = ((OperatorEventArgs)e).op; 76 if (op.GetVariable(GPOperatorLibrary.MANIPULATION) != null) {77 if(op.GetVariable(FunctionBase.MANIPULATION) != null) { 77 78 ListViewItem operatorMutationItem = new ListViewItem(); 78 79 operatorMutationItem.Name = op.Name; … … 82 83 } 83 84 84 if (op.GetVariable(GPOperatorLibrary.INITIALIZATION) != null) {85 if(op.GetVariable(FunctionBase.INITIALIZATION) != null) { 85 86 ListViewItem operatorInitItem = new ListViewItem(); 86 87 operatorInitItem.Name = op.Name; … … 133 134 private void mutationListView_SelectedIndexChanged(object sender, EventArgs e) { 134 135 if(mutationListView.SelectedItems.Count>0 && mutationListView.SelectedItems[0].Tag != null) { 135 IVariable variable = ((IOperator)mutationListView.SelectedItems[0].Tag).GetVariable( GPOperatorLibrary.MANIPULATION);136 IVariable variable = ((IOperator)mutationListView.SelectedItems[0].Tag).GetVariable(FunctionBase.MANIPULATION); 136 137 mutationVariableView.Enabled = true; 137 138 mutationVariableView.Variable = variable; … … 143 144 private void initListView_SelectedIndexChanged(object sender, EventArgs e) { 144 145 if(initListView.SelectedItems.Count>0 && initListView.SelectedItems[0].Tag != null) { 145 IVariable variable = ((IOperator)initListView.SelectedItems[0].Tag).GetVariable( GPOperatorLibrary.INITIALIZATION);146 IVariable variable = ((IOperator)initListView.SelectedItems[0].Tag).GetVariable(FunctionBase.INITIALIZATION); 146 147 initVariableView.Enabled = true; 147 148 initVariableView.Variable = variable;
Note: See TracChangeset
for help on using the changeset viewer.