- Timestamp:
- 07/22/19 13:39:09 (5 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r16896 r17146 325 325 <DependentUpon>ModifiableDatasetView.cs</DependentUpon> 326 326 </Compile> 327 <Compile Include="P arsedConstraintView.cs">328 <SubType>UserControl</SubType> 329 </Compile> 330 <Compile Include="P arsedConstraintView.designer.cs">331 <DependentUpon>P arsedConstraintView.cs</DependentUpon>327 <Compile Include="ProblemDataConstraintView.cs"> 328 <SubType>UserControl</SubType> 329 </Compile> 330 <Compile Include="ProblemDataConstraintView.designer.cs"> 331 <DependentUpon>ProblemDataConstraintView.cs</DependentUpon> 332 332 </Compile> 333 333 <Compile Include="Plugin.cs" /> -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.cs
r17145 r17146 29 29 [View("ParsedConstraint View")] 30 30 [Content(typeof(ProblemDataConstraint), true)] 31 public partial class P arsedConstraintView : AsynchronousContentView {32 private CheckedItemList<IntervalConstraint> intervalConstraints;31 public partial class ProblemDataConstraintView : AsynchronousContentView { 32 private readonly CheckedItemList<IntervalConstraint> intervalConstraints = new CheckedItemList<IntervalConstraint>(); 33 33 public new ProblemDataConstraint Content { 34 34 get => (ProblemDataConstraint)base.Content; … … 36 36 } 37 37 38 public P arsedConstraintView() {38 public ProblemDataConstraintView() { 39 39 InitializeComponent(); 40 40 errorOutput.Text = ""; 41 intervalConstraints = new CheckedItemList<IntervalConstraint>();42 41 } 43 42 … … 88 87 if (Content == null) { 89 88 intervalConstraints.Clear(); 90 constraintsOutput.Content = intervalConstraints;89 intervalConstraintsView.Content = intervalConstraints; 91 90 } else { 92 91 intervalConstraints.Clear(); … … 96 95 } 97 96 98 constraintsOutput.Content = intervalConstraints;97 intervalConstraintsView.Content = intervalConstraints; 99 98 } 100 99 } 101 100 102 101 private void constraint_Changed(object sender, EventArgs e) { 103 var constraint = (IntervalConstraint) 102 var constraint = (IntervalConstraint)sender; 104 103 intervalConstraints.SetItemCheckedState(constraint, constraint.Enabled); 105 104 } … … 119 118 private void constraint_CheckedItemChanged(object sender, 120 119 CollectionItemsChangedEventArgs<IndexedItem<IntervalConstraint>> e) { 121 ICheckedItemList<IntervalConstraint> checkedItemList = (ICheckedItemList<IntervalConstraint>) 120 ICheckedItemList<IntervalConstraint> checkedItemList = (ICheckedItemList<IntervalConstraint>)sender; 122 121 foreach (var indexedItem in e.Items) { 123 122 indexedItem.Value.Enabled = checkedItemList.ItemChecked(indexedItem.Value); -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.designer.cs
r17145 r17146 22 22 23 23 namespace HeuristicLab.Problems.DataAnalysis.Views { 24 partial class P arsedConstraintView {24 partial class ProblemDataConstraintView { 25 25 /// <summary> 26 26 /// Required designer variable. … … 46 46 /// </summary> 47 47 private void InitializeComponent() { 48 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(P arsedConstraintView));48 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProblemDataConstraintView)); 49 49 this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 50 50 this.groupBox1 = new System.Windows.Forms.GroupBox(); … … 52 52 this.parseBtn = new System.Windows.Forms.Button(); 53 53 this.label1 = new System.Windows.Forms.Label(); 54 //this.constraintsOutput = new System.Windows.Forms.Label(); 55 this.constraintsOutput = new HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint>(); 54 this.intervalConstraintsView = new HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint>(); 56 55 this.errorOutput = new System.Windows.Forms.Label(); 57 56 ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); … … 74 73 // splitContainer1.Panel2 75 74 // 76 this.splitContainer1.Panel2.Controls.Add(this. constraintsOutput);75 this.splitContainer1.Panel2.Controls.Add(this.intervalConstraintsView); 77 76 this.splitContainer1.Size = new System.Drawing.Size(888, 629); 78 77 this.splitContainer1.SplitterDistance = 296; … … 136 135 "5. Follow the steps 3-5 from above"; 137 136 // 138 // constraintsOutput137 // intervalConstraintsView 139 138 // 140 this. constraintsOutput.Dock = System.Windows.Forms.DockStyle.Fill;141 this. constraintsOutput.Location = new System.Drawing.Point(3, 16);142 this. constraintsOutput.Name = "constraintsOutput";143 this. constraintsOutput.Size = new System.Drawing.Size(582, 587);144 this. constraintsOutput.TabIndex = 2;139 this.intervalConstraintsView.Dock = System.Windows.Forms.DockStyle.Fill; 140 this.intervalConstraintsView.Location = new System.Drawing.Point(3, 16); 141 this.intervalConstraintsView.Name = "intervalConstraintsView"; 142 this.intervalConstraintsView.Size = new System.Drawing.Size(582, 587); 143 this.intervalConstraintsView.TabIndex = 2; 145 144 // 146 145 // errorOutput … … 178 177 private System.Windows.Forms.Button parseBtn; 179 178 private System.Windows.Forms.Label label1; 179 private HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint> intervalConstraintsView; 180 180 private System.Windows.Forms.TextBox constraintsInput; 181 181 private System.Windows.Forms.Label errorOutput; 182 182 183 //private System.Windows.Forms.Label constraintsOutput;184 private HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint> constraintsOutput;185 183 } 186 184 }
Note: See TracChangeset
for help on using the changeset viewer.