Changeset 3014 for trunk/sources
- Timestamp:
- 03/12/10 14:34:33 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators.Programmable/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs
r3008 r3014 48 48 #region Fields & Properties 49 49 50 public new IObservableKeyedCollection<string, IParameter>Parameters {50 public new ParameterCollection Parameters { 51 51 get { return base.Parameters; } 52 52 } … … 172 172 Assemblies = defaultAssemblyDict; 173 173 Plugins = defaultPluginDict; 174 namespaces = new HashSet<string>(DiscoverNamespaces()); 175 Parameters.ItemsAdded += (s, a) => OnSignatureChanged(s, a); 176 Parameters.ItemsRemoved += (s, a) => OnSignatureChanged(s, a); 177 Parameters.ItemsReplaced += (s, a) => OnSignatureChanged(s, a); 178 Parameters.CollectionReset += (s, a) => OnSignatureChanged(s, a); 174 namespaces = new HashSet<string>(DiscoverNamespaces()); 175 RegisterEvents(); 176 } 177 178 [StorableHook(HookType.AfterDeserialization)] 179 private void RegisterEvents() { 180 Parameters.ItemsAdded += OnSignatureChanged; 181 Parameters.ItemsRemoved += OnSignatureChanged; 182 Parameters.ItemsReplaced += OnSignatureChanged; 183 Parameters.CollectionReset += OnSignatureChanged; 179 184 } 180 185 … … 421 426 clone.CompilationUnitCode = CompilationUnitCode; 422 427 clone.CompileErrors = CompileErrors; 428 clone.RegisterEvents(); 423 429 return clone; 424 430 } -
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperatorView.Designer.cs
r3008 r3014 55 55 this.tabControl1 = new System.Windows.Forms.TabControl(); 56 56 this.tabPage1 = new System.Windows.Forms.TabPage(); 57 this.parameterCollectionView 1= new HeuristicLab.Core.Views.ParameterCollectionView();57 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 58 58 tabPage2 = new System.Windows.Forms.TabPage(); 59 59 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); … … 201 201 // tabPage1 202 202 // 203 this.tabPage1.Controls.Add(this.parameterCollectionView 1);203 this.tabPage1.Controls.Add(this.parameterCollectionView); 204 204 this.tabPage1.Location = new System.Drawing.Point(4, 22); 205 205 this.tabPage1.Name = "tabPage1"; … … 212 212 // parameterCollectionView1 213 213 // 214 this.parameterCollectionView 1.Caption = "ParameterCollection";215 this.parameterCollectionView 1.Content = null;216 this.parameterCollectionView 1.Dock = System.Windows.Forms.DockStyle.Fill;217 this.parameterCollectionView 1.Location = new System.Drawing.Point(3, 3);218 this.parameterCollectionView 1.Name = "parameterCollectionView1";219 this.parameterCollectionView 1.Size = new System.Drawing.Size(971, 613);220 this.parameterCollectionView 1.TabIndex = 0;214 this.parameterCollectionView.Caption = "ParameterCollection"; 215 this.parameterCollectionView.Content = null; 216 this.parameterCollectionView.Dock = System.Windows.Forms.DockStyle.Fill; 217 this.parameterCollectionView.Location = new System.Drawing.Point(3, 3); 218 this.parameterCollectionView.Name = "parameterCollectionView1"; 219 this.parameterCollectionView.Size = new System.Drawing.Size(971, 613); 220 this.parameterCollectionView.TabIndex = 0; 221 221 // 222 222 // ProgrammableOperatorView … … 251 251 private System.Windows.Forms.TabControl tabControl1; 252 252 private System.Windows.Forms.TabPage tabPage1; 253 private HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView 1;253 private HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView; 254 254 private System.Windows.Forms.SplitContainer splitContainer1; 255 255 private HeuristicLab.CodeEditor.CodeEditor codeEditor; -
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperatorView.cs
r3008 r3014 78 78 descriptionTextBox.Enabled = false; 79 79 assembliesTreeView.Nodes.Clear(); 80 parameterCollectionView 1.Content = null;80 parameterCollectionView.Content = null; 81 81 } else { 82 82 codeEditor.Enabled = true; … … 101 101 ProgrammableOperator.CompilationUnitCode != null && 102 102 ProgrammableOperator.CompilationUnitCode.Length > 0; 103 parameterCollectionView 1.Content = ProgrammableOperator.Parameters;103 parameterCollectionView.Content = ProgrammableOperator.Parameters; 104 104 } 105 105 }
Note: See TracChangeset
for help on using the changeset viewer.