Changeset 2917 for trunk/sources/HeuristicLab.Operators.Views
- Timestamp:
- 03/03/10 06:46:30 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators.Views/3.3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views/3.3/AlgorithmOperatorView.Designer.cs
r2830 r2917 50 50 this.operatorGraphTabPage = new System.Windows.Forms.TabPage(); 51 51 this.operatorGraphViewHost = new HeuristicLab.Core.Views.ViewHost(); 52 this.breakpointCheckBox = new System.Windows.Forms.CheckBox(); 53 this.breakpointLabel = new System.Windows.Forms.Label(); 52 54 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 55 this.tabControl.SuspendLayout(); … … 64 66 // descriptionTextBox 65 67 // 66 this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 67 | System.Windows.Forms.AnchorStyles.Right))); 68 this.descriptionTextBox.Size = new System.Drawing.Size(414, 86); 68 this.descriptionTextBox.Size = new System.Drawing.Size(414, 20); 69 69 // 70 70 // tabControl … … 75 75 this.tabControl.Controls.Add(this.parametersTabPage); 76 76 this.tabControl.Controls.Add(this.operatorGraphTabPage); 77 this.tabControl.Location = new System.Drawing.Point(0, 118);77 this.tabControl.Location = new System.Drawing.Point(0, 72); 78 78 this.tabControl.Name = "tabControl"; 79 79 this.tabControl.SelectedIndex = 0; 80 this.tabControl.Size = new System.Drawing.Size(486, 364);81 this.tabControl.TabIndex = 4;80 this.tabControl.Size = new System.Drawing.Size(486, 410); 81 this.tabControl.TabIndex = 6; 82 82 // 83 83 // parametersTabPage … … 87 87 this.parametersTabPage.Name = "parametersTabPage"; 88 88 this.parametersTabPage.Padding = new System.Windows.Forms.Padding(3); 89 this.parametersTabPage.Size = new System.Drawing.Size(478, 3 38);89 this.parametersTabPage.Size = new System.Drawing.Size(478, 384); 90 90 this.parametersTabPage.TabIndex = 0; 91 91 this.parametersTabPage.Text = "Parameters"; … … 101 101 this.parameterCollectionView.Location = new System.Drawing.Point(6, 6); 102 102 this.parameterCollectionView.Name = "parameterCollectionView"; 103 this.parameterCollectionView.Size = new System.Drawing.Size(466, 3 26);103 this.parameterCollectionView.Size = new System.Drawing.Size(466, 372); 104 104 this.parameterCollectionView.TabIndex = 0; 105 105 // … … 110 110 this.operatorGraphTabPage.Name = "operatorGraphTabPage"; 111 111 this.operatorGraphTabPage.Padding = new System.Windows.Forms.Padding(3); 112 this.operatorGraphTabPage.Size = new System.Drawing.Size(478, 3 38);112 this.operatorGraphTabPage.Size = new System.Drawing.Size(478, 384); 113 113 this.operatorGraphTabPage.TabIndex = 1; 114 114 this.operatorGraphTabPage.Text = "Operator Graph"; … … 123 123 this.operatorGraphViewHost.Location = new System.Drawing.Point(6, 6); 124 124 this.operatorGraphViewHost.Name = "operatorGraphViewHost"; 125 this.operatorGraphViewHost.Size = new System.Drawing.Size(466, 3 26);125 this.operatorGraphViewHost.Size = new System.Drawing.Size(466, 372); 126 126 this.operatorGraphViewHost.TabIndex = 0; 127 127 this.operatorGraphViewHost.ViewType = null; 128 // 129 // breakpointCheckBox 130 // 131 this.breakpointCheckBox.AutoSize = true; 132 this.breakpointCheckBox.Location = new System.Drawing.Point(72, 52); 133 this.breakpointCheckBox.Name = "breakpointCheckBox"; 134 this.breakpointCheckBox.Size = new System.Drawing.Size(15, 14); 135 this.breakpointCheckBox.TabIndex = 5; 136 this.breakpointCheckBox.UseVisualStyleBackColor = true; 137 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 138 // 139 // breakpointLabel 140 // 141 this.breakpointLabel.AutoSize = true; 142 this.breakpointLabel.Location = new System.Drawing.Point(3, 52); 143 this.breakpointLabel.Name = "breakpointLabel"; 144 this.breakpointLabel.Size = new System.Drawing.Size(61, 13); 145 this.breakpointLabel.TabIndex = 4; 146 this.breakpointLabel.Text = "&Breakpoint:"; 128 147 // 129 148 // AlgorithmOperatorView … … 131 150 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 132 151 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 152 this.Controls.Add(this.breakpointCheckBox); 153 this.Controls.Add(this.breakpointLabel); 133 154 this.Controls.Add(this.tabControl); 134 155 this.Name = "AlgorithmOperatorView"; … … 139 160 this.Controls.SetChildIndex(this.nameTextBox, 0); 140 161 this.Controls.SetChildIndex(this.descriptionTextBox, 0); 162 this.Controls.SetChildIndex(this.breakpointLabel, 0); 163 this.Controls.SetChildIndex(this.breakpointCheckBox, 0); 141 164 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 142 165 this.tabControl.ResumeLayout(false); … … 155 178 protected HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView; 156 179 protected HeuristicLab.Core.Views.ViewHost operatorGraphViewHost; 180 protected System.Windows.Forms.CheckBox breakpointCheckBox; 181 protected System.Windows.Forms.Label breakpointLabel; 157 182 } 158 183 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/AlgorithmOperatorView.cs
r2834 r2917 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Core.Views; … … 28 29 /// The base class for visual representations of items. 29 30 /// </summary> 31 [View("AlgorithmOperator View")] 30 32 [Content(typeof(AlgorithmOperator), true)] 31 33 public partial class AlgorithmOperatorView : NamedItemView { … … 50 52 } 51 53 54 /// <summary> 55 /// Removes the eventhandlers from the underlying <see cref="IOperatorGraph"/>. 56 /// </summary> 57 /// <remarks>Calls <see cref="ViewBase.RemoveItemEvents"/> of base class <see cref="ViewBase"/>.</remarks> 58 protected override void DeregisterContentEvents() { 59 Content.BreakpointChanged -= new EventHandler(Content_BreakpointChanged); 60 base.DeregisterContentEvents(); 61 } 62 63 /// <summary> 64 /// Adds eventhandlers to the underlying <see cref="IOperatorGraph"/>. 65 /// </summary> 66 /// <remarks>Calls <see cref="ViewBase.AddItemEvents"/> of base class <see cref="ViewBase"/>.</remarks> 67 protected override void RegisterContentEvents() { 68 base.RegisterContentEvents(); 69 Content.BreakpointChanged += new EventHandler(Content_BreakpointChanged); 70 } 71 52 72 protected override void OnContentChanged() { 53 73 base.OnContentChanged(); 54 74 if (Content == null) { 75 breakpointCheckBox.Checked = false; 76 breakpointCheckBox.Enabled = false; 55 77 parameterCollectionView.Content = null; 56 78 operatorGraphViewHost.Content = null; 57 79 tabControl.Enabled = false; 58 80 } else { 81 breakpointCheckBox.Checked = Content.Breakpoint; 82 breakpointCheckBox.Enabled = true; 59 83 parameterCollectionView.Content = ((IOperator)Content).Parameters; 60 84 operatorGraphViewHost.Content = Content.OperatorGraph; … … 62 86 } 63 87 } 88 89 protected void Content_BreakpointChanged(object sender, EventArgs e) { 90 if (InvokeRequired) 91 Invoke(new EventHandler(Content_DescriptionChanged), sender, e); 92 else 93 breakpointCheckBox.Checked = Content.Breakpoint; 94 } 95 96 protected void breakpointCheckBox_CheckedChanged(object sender, System.EventArgs e) { 97 if (Content != null) Content.Breakpoint = breakpointCheckBox.Checked; 98 } 64 99 } 65 100 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/MultipleCallsOperatorView.Designer.cs
r2790 r2917 50 50 this.parametersTabPage = new System.Windows.Forms.TabPage(); 51 51 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 52 this.breakpointCheckBox = new System.Windows.Forms.CheckBox(); 53 this.breakpointLabel = new System.Windows.Forms.Label(); 52 54 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 55 this.tabControl.SuspendLayout(); … … 64 66 // descriptionTextBox 65 67 // 66 this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 67 | System.Windows.Forms.AnchorStyles.Right))); 68 this.descriptionTextBox.Size = new System.Drawing.Size(414, 86); 68 this.descriptionTextBox.Size = new System.Drawing.Size(414, 20); 69 69 // 70 70 // tabControl … … 75 75 this.tabControl.Controls.Add(this.operatorsTabPage); 76 76 this.tabControl.Controls.Add(this.parametersTabPage); 77 this.tabControl.Location = new System.Drawing.Point(0, 118);77 this.tabControl.Location = new System.Drawing.Point(0, 72); 78 78 this.tabControl.Name = "tabControl"; 79 79 this.tabControl.SelectedIndex = 0; 80 this.tabControl.Size = new System.Drawing.Size(486, 364);81 this.tabControl.TabIndex = 4;80 this.tabControl.Size = new System.Drawing.Size(486, 410); 81 this.tabControl.TabIndex = 6; 82 82 // 83 83 // operatorsTabPage … … 87 87 this.operatorsTabPage.Name = "operatorsTabPage"; 88 88 this.operatorsTabPage.Padding = new System.Windows.Forms.Padding(3); 89 this.operatorsTabPage.Size = new System.Drawing.Size(478, 3 38);89 this.operatorsTabPage.Size = new System.Drawing.Size(478, 384); 90 90 this.operatorsTabPage.TabIndex = 0; 91 91 this.operatorsTabPage.Text = "Operators"; … … 101 101 this.operatorListView.Location = new System.Drawing.Point(6, 6); 102 102 this.operatorListView.Name = "operatorListView"; 103 this.operatorListView.Size = new System.Drawing.Size(466, 3 26);103 this.operatorListView.Size = new System.Drawing.Size(466, 372); 104 104 this.operatorListView.TabIndex = 0; 105 105 // … … 127 127 this.parameterCollectionView.TabIndex = 0; 128 128 // 129 // breakpointCheckBox 130 // 131 this.breakpointCheckBox.AutoSize = true; 132 this.breakpointCheckBox.Location = new System.Drawing.Point(72, 52); 133 this.breakpointCheckBox.Name = "breakpointCheckBox"; 134 this.breakpointCheckBox.Size = new System.Drawing.Size(15, 14); 135 this.breakpointCheckBox.TabIndex = 5; 136 this.breakpointCheckBox.UseVisualStyleBackColor = true; 137 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 138 // 139 // breakpointLabel 140 // 141 this.breakpointLabel.AutoSize = true; 142 this.breakpointLabel.Location = new System.Drawing.Point(3, 52); 143 this.breakpointLabel.Name = "breakpointLabel"; 144 this.breakpointLabel.Size = new System.Drawing.Size(61, 13); 145 this.breakpointLabel.TabIndex = 4; 146 this.breakpointLabel.Text = "&Breakpoint:"; 147 // 129 148 // MultipleCallsOperatorView 130 149 // 131 150 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 132 151 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 152 this.Controls.Add(this.breakpointCheckBox); 153 this.Controls.Add(this.breakpointLabel); 133 154 this.Controls.Add(this.tabControl); 134 155 this.Name = "MultipleCallsOperatorView"; … … 139 160 this.Controls.SetChildIndex(this.nameTextBox, 0); 140 161 this.Controls.SetChildIndex(this.descriptionTextBox, 0); 162 this.Controls.SetChildIndex(this.breakpointLabel, 0); 163 this.Controls.SetChildIndex(this.breakpointCheckBox, 0); 141 164 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 142 165 this.tabControl.ResumeLayout(false); … … 153 176 protected System.Windows.Forms.TabPage operatorsTabPage; 154 177 protected System.Windows.Forms.TabPage parametersTabPage; 155 private HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView; 156 private HeuristicLab.Core.Views.OperatorListView operatorListView; 178 protected HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView; 179 protected HeuristicLab.Core.Views.OperatorListView operatorListView; 180 protected System.Windows.Forms.CheckBox breakpointCheckBox; 181 protected System.Windows.Forms.Label breakpointLabel; 157 182 } 158 183 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/MultipleCallsOperatorView.cs
r2796 r2917 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Core.Views; … … 28 29 /// The base class for visual representations of items. 29 30 /// </summary> 31 [View("MultipleCallsOperator View")] 30 32 [Content(typeof(MultipleCallsOperator), true)] 31 33 public partial class MultipleCallsOperatorView : NamedItemView { … … 50 52 } 51 53 54 /// <summary> 55 /// Removes the eventhandlers from the underlying <see cref="IOperatorGraph"/>. 56 /// </summary> 57 /// <remarks>Calls <see cref="ViewBase.RemoveItemEvents"/> of base class <see cref="ViewBase"/>.</remarks> 58 protected override void DeregisterContentEvents() { 59 Content.BreakpointChanged -= new EventHandler(Content_BreakpointChanged); 60 base.DeregisterContentEvents(); 61 } 62 63 /// <summary> 64 /// Adds eventhandlers to the underlying <see cref="IOperatorGraph"/>. 65 /// </summary> 66 /// <remarks>Calls <see cref="ViewBase.AddItemEvents"/> of base class <see cref="ViewBase"/>.</remarks> 67 protected override void RegisterContentEvents() { 68 base.RegisterContentEvents(); 69 Content.BreakpointChanged += new EventHandler(Content_BreakpointChanged); 70 } 71 52 72 protected override void OnContentChanged() { 53 73 base.OnContentChanged(); 54 74 if (Content == null) { 75 breakpointCheckBox.Checked = false; 76 breakpointCheckBox.Enabled = false; 55 77 operatorListView.Content = null; 56 78 parameterCollectionView.Content = null; 57 79 tabControl.Enabled = false; 58 80 } else { 81 breakpointCheckBox.Checked = Content.Breakpoint; 82 breakpointCheckBox.Enabled = true; 59 83 operatorListView.Content = Content.Operators; 60 84 parameterCollectionView.Content = ((IOperator)Content).Parameters; … … 62 86 } 63 87 } 88 89 protected void Content_BreakpointChanged(object sender, EventArgs e) { 90 if (InvokeRequired) 91 Invoke(new EventHandler(Content_DescriptionChanged), sender, e); 92 else 93 breakpointCheckBox.Checked = Content.Breakpoint; 94 } 95 96 protected void breakpointCheckBox_CheckedChanged(object sender, System.EventArgs e) { 97 if (Content != null) Content.Breakpoint = breakpointCheckBox.Checked; 98 } 64 99 } 65 100 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.Designer.cs
r2845 r2917 52 52 // parameterCollectionView 53 53 // 54 this.parameterCollectionView.Location = new System.Drawing.Point(0, 139);55 this.parameterCollectionView.Size = new System.Drawing.Size(490, 2 14);54 this.parameterCollectionView.Location = new System.Drawing.Point(0, 72); 55 this.parameterCollectionView.Size = new System.Drawing.Size(490, 281); 56 56 this.parameterCollectionView.TabIndex = 6; 57 57 // … … 64 64 // 65 65 this.breakpointLabel.AutoSize = true; 66 this.breakpointLabel.Location = new System.Drawing.Point(3, 120);66 this.breakpointLabel.Location = new System.Drawing.Point(3, 52); 67 67 this.breakpointLabel.Name = "breakpointLabel"; 68 68 this.breakpointLabel.Size = new System.Drawing.Size(61, 13); … … 73 73 // 74 74 this.breakpointCheckBox.AutoSize = true; 75 this.breakpointCheckBox.Location = new System.Drawing.Point(72, 119);75 this.breakpointCheckBox.Location = new System.Drawing.Point(72, 52); 76 76 this.breakpointCheckBox.Name = "breakpointCheckBox"; 77 77 this.breakpointCheckBox.Size = new System.Drawing.Size(15, 14); … … 84 84 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 85 85 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 86 this.Controls.Add(this.breakpointCheckBox); 86 87 this.Controls.Add(this.breakpointLabel); 87 this.Controls.Add(this.breakpointCheckBox);88 88 this.Name = "OperatorView"; 89 this.Controls.SetChildIndex(this.breakpointLabel, 0); 89 90 this.Controls.SetChildIndex(this.breakpointCheckBox, 0); 90 this.Controls.SetChildIndex(this.breakpointLabel, 0);91 91 this.Controls.SetChildIndex(this.nameTextBox, 0); 92 92 this.Controls.SetChildIndex(this.nameLabel, 0); … … 102 102 #endregion 103 103 104 pr ivateSystem.Windows.Forms.Label breakpointLabel;105 pr ivateSystem.Windows.Forms.CheckBox breakpointCheckBox;104 protected System.Windows.Forms.Label breakpointLabel; 105 protected System.Windows.Forms.CheckBox breakpointCheckBox; 106 106 107 107 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.cs
r2851 r2917 29 29 /// The base class for visual representations of items. 30 30 /// </summary> 31 [View("Operator View (Default)")] 31 32 [Content(typeof(Operator), true)] 32 33 [Content(typeof(IOperator), false)] … … 81 82 } 82 83 83 pr ivatevoid Content_BreakpointChanged(object sender, EventArgs e) {84 protected void Content_BreakpointChanged(object sender, EventArgs e) { 84 85 if (InvokeRequired) 85 86 Invoke(new EventHandler(Content_DescriptionChanged), sender, e); … … 88 89 } 89 90 90 pr ivatevoid breakpointCheckBox_CheckedChanged(object sender, System.EventArgs e) {91 protected void breakpointCheckBox_CheckedChanged(object sender, System.EventArgs e) { 91 92 if (Content != null) Content.Breakpoint = breakpointCheckBox.Checked; 92 93 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/ValuesCollectorView.Designer.cs
r2790 r2917 50 50 this.parametersTabPage = new System.Windows.Forms.TabPage(); 51 51 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 52 this.breakpointCheckBox = new System.Windows.Forms.CheckBox(); 53 this.breakpointLabel = new System.Windows.Forms.Label(); 52 54 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 55 this.tabControl.SuspendLayout(); … … 64 66 // descriptionTextBox 65 67 // 66 this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 67 | System.Windows.Forms.AnchorStyles.Right))); 68 this.descriptionTextBox.Size = new System.Drawing.Size(414, 86); 68 this.descriptionTextBox.Size = new System.Drawing.Size(414, 20); 69 69 // 70 70 // tabControl … … 75 75 this.tabControl.Controls.Add(this.collectedValuesTabPage); 76 76 this.tabControl.Controls.Add(this.parametersTabPage); 77 this.tabControl.Location = new System.Drawing.Point(0, 118);77 this.tabControl.Location = new System.Drawing.Point(0, 72); 78 78 this.tabControl.Name = "tabControl"; 79 79 this.tabControl.SelectedIndex = 0; 80 this.tabControl.Size = new System.Drawing.Size(486, 364);81 this.tabControl.TabIndex = 4;80 this.tabControl.Size = new System.Drawing.Size(486, 410); 81 this.tabControl.TabIndex = 6; 82 82 // 83 83 // collectedValuesTabPage … … 87 87 this.collectedValuesTabPage.Name = "collectedValuesTabPage"; 88 88 this.collectedValuesTabPage.Padding = new System.Windows.Forms.Padding(3); 89 this.collectedValuesTabPage.Size = new System.Drawing.Size(478, 3 38);89 this.collectedValuesTabPage.Size = new System.Drawing.Size(478, 384); 90 90 this.collectedValuesTabPage.TabIndex = 0; 91 91 this.collectedValuesTabPage.Text = "Collected Values"; … … 101 101 this.collectedValuesView.Location = new System.Drawing.Point(6, 6); 102 102 this.collectedValuesView.Name = "collectedValuesView"; 103 this.collectedValuesView.Size = new System.Drawing.Size(466, 3 26);103 this.collectedValuesView.Size = new System.Drawing.Size(466, 372); 104 104 this.collectedValuesView.TabIndex = 0; 105 105 // … … 127 127 this.parameterCollectionView.TabIndex = 0; 128 128 // 129 // breakpointCheckBox 130 // 131 this.breakpointCheckBox.AutoSize = true; 132 this.breakpointCheckBox.Location = new System.Drawing.Point(72, 52); 133 this.breakpointCheckBox.Name = "breakpointCheckBox"; 134 this.breakpointCheckBox.Size = new System.Drawing.Size(15, 14); 135 this.breakpointCheckBox.TabIndex = 5; 136 this.breakpointCheckBox.UseVisualStyleBackColor = true; 137 this.breakpointCheckBox.CheckedChanged += new System.EventHandler(this.breakpointCheckBox_CheckedChanged); 138 // 139 // breakpointLabel 140 // 141 this.breakpointLabel.AutoSize = true; 142 this.breakpointLabel.Location = new System.Drawing.Point(3, 52); 143 this.breakpointLabel.Name = "breakpointLabel"; 144 this.breakpointLabel.Size = new System.Drawing.Size(61, 13); 145 this.breakpointLabel.TabIndex = 4; 146 this.breakpointLabel.Text = "&Breakpoint:"; 147 // 129 148 // ValuesCollectorView 130 149 // 131 150 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 132 151 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 152 this.Controls.Add(this.breakpointCheckBox); 153 this.Controls.Add(this.breakpointLabel); 133 154 this.Controls.Add(this.tabControl); 134 155 this.Name = "ValuesCollectorView"; … … 139 160 this.Controls.SetChildIndex(this.nameTextBox, 0); 140 161 this.Controls.SetChildIndex(this.descriptionTextBox, 0); 162 this.Controls.SetChildIndex(this.breakpointLabel, 0); 163 this.Controls.SetChildIndex(this.breakpointCheckBox, 0); 141 164 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 142 165 this.tabControl.ResumeLayout(false); … … 155 178 protected HeuristicLab.Core.Views.ParameterCollectionView parameterCollectionView; 156 179 protected HeuristicLab.Core.Views.ParameterCollectionView collectedValuesView; 180 protected System.Windows.Forms.CheckBox breakpointCheckBox; 181 protected System.Windows.Forms.Label breakpointLabel; 157 182 158 183 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/ValuesCollectorView.cs
r2796 r2917 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Core.Views; … … 28 29 /// The base class for visual representations of items. 29 30 /// </summary> 31 [View("ValuesCollector View")] 30 32 [Content(typeof(ValuesCollector), true)] 31 33 public partial class ValuesCollectorView : NamedItemView { … … 50 52 } 51 53 54 /// <summary> 55 /// Removes the eventhandlers from the underlying <see cref="IOperatorGraph"/>. 56 /// </summary> 57 /// <remarks>Calls <see cref="ViewBase.RemoveItemEvents"/> of base class <see cref="ViewBase"/>.</remarks> 58 protected override void DeregisterContentEvents() { 59 Content.BreakpointChanged -= new EventHandler(Content_BreakpointChanged); 60 base.DeregisterContentEvents(); 61 } 62 63 /// <summary> 64 /// Adds eventhandlers to the underlying <see cref="IOperatorGraph"/>. 65 /// </summary> 66 /// <remarks>Calls <see cref="ViewBase.AddItemEvents"/> of base class <see cref="ViewBase"/>.</remarks> 67 protected override void RegisterContentEvents() { 68 base.RegisterContentEvents(); 69 Content.BreakpointChanged += new EventHandler(Content_BreakpointChanged); 70 } 71 52 72 protected override void OnContentChanged() { 53 73 base.OnContentChanged(); 54 74 if (Content == null) { 75 breakpointCheckBox.Checked = false; 76 breakpointCheckBox.Enabled = false; 55 77 collectedValuesView.Content = null; 56 78 parameterCollectionView.Content = null; 57 79 tabControl.Enabled = false; 58 80 } else { 81 breakpointCheckBox.Checked = Content.Breakpoint; 82 breakpointCheckBox.Enabled = true; 59 83 collectedValuesView.Content = Content.CollectedValues; 60 84 parameterCollectionView.Content = ((IOperator)Content).Parameters; … … 62 86 } 63 87 } 88 89 protected void Content_BreakpointChanged(object sender, EventArgs e) { 90 if (InvokeRequired) 91 Invoke(new EventHandler(Content_DescriptionChanged), sender, e); 92 else 93 breakpointCheckBox.Checked = Content.Breakpoint; 94 } 95 96 protected void breakpointCheckBox_CheckedChanged(object sender, System.EventArgs e) { 97 if (Content != null) Content.Breakpoint = breakpointCheckBox.Checked; 98 } 64 99 } 65 100 }
Note: See TracChangeset
for help on using the changeset viewer.