Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/19 13:39:09 (5 years ago)
Author:
mkommend
Message:

#2971: Renamed views and updated error messages in constraint parser.

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  
    325325      <DependentUpon>ModifiableDatasetView.cs</DependentUpon>
    326326    </Compile>
    327     <Compile Include="ParsedConstraintView.cs">
    328       <SubType>UserControl</SubType>
    329     </Compile>
    330     <Compile Include="ParsedConstraintView.designer.cs">
    331       <DependentUpon>ParsedConstraintView.cs</DependentUpon>
     327    <Compile Include="ProblemDataConstraintView.cs">
     328      <SubType>UserControl</SubType>
     329    </Compile>
     330    <Compile Include="ProblemDataConstraintView.designer.cs">
     331      <DependentUpon>ProblemDataConstraintView.cs</DependentUpon>
    332332    </Compile>
    333333    <Compile Include="Plugin.cs" />
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.cs

    r17145 r17146  
    2929  [View("ParsedConstraint View")]
    3030  [Content(typeof(ProblemDataConstraint), true)]
    31   public partial class ParsedConstraintView : AsynchronousContentView {
    32     private CheckedItemList<IntervalConstraint> intervalConstraints;
     31  public partial class ProblemDataConstraintView : AsynchronousContentView {
     32    private readonly CheckedItemList<IntervalConstraint> intervalConstraints = new CheckedItemList<IntervalConstraint>();
    3333    public new ProblemDataConstraint Content {
    3434      get => (ProblemDataConstraint)base.Content;
     
    3636    }
    3737
    38     public ParsedConstraintView() {
     38    public ProblemDataConstraintView() {
    3939      InitializeComponent();
    4040      errorOutput.Text = "";
    41       intervalConstraints = new CheckedItemList<IntervalConstraint>();
    4241    }
    4342
     
    8887      if (Content == null) {
    8988        intervalConstraints.Clear();
    90         constraintsOutput.Content = intervalConstraints;
     89        intervalConstraintsView.Content = intervalConstraints;
    9190      } else {
    9291        intervalConstraints.Clear();
     
    9695        }
    9796
    98         constraintsOutput.Content = intervalConstraints;
     97        intervalConstraintsView.Content = intervalConstraints;
    9998      }
    10099    }
    101100
    102101    private void constraint_Changed(object sender, EventArgs e) {
    103       var constraint = (IntervalConstraint) sender;
     102      var constraint = (IntervalConstraint)sender;
    104103      intervalConstraints.SetItemCheckedState(constraint, constraint.Enabled);
    105104    }
     
    119118    private void constraint_CheckedItemChanged(object sender,
    120119      CollectionItemsChangedEventArgs<IndexedItem<IntervalConstraint>> e) {
    121       ICheckedItemList<IntervalConstraint> checkedItemList = (ICheckedItemList<IntervalConstraint>) sender;
     120      ICheckedItemList<IntervalConstraint> checkedItemList = (ICheckedItemList<IntervalConstraint>)sender;
    122121      foreach (var indexedItem in e.Items) {
    123122        indexedItem.Value.Enabled = checkedItemList.ItemChecked(indexedItem.Value);
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.designer.cs

    r17145 r17146  
    2222
    2323namespace HeuristicLab.Problems.DataAnalysis.Views {
    24   partial class ParsedConstraintView {
     24  partial class ProblemDataConstraintView {
    2525    /// <summary>
    2626    /// Required designer variable.
     
    4646    /// </summary>
    4747    private void InitializeComponent() {
    48       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ParsedConstraintView));
     48      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProblemDataConstraintView));
    4949      this.splitContainer1 = new System.Windows.Forms.SplitContainer();
    5050      this.groupBox1 = new System.Windows.Forms.GroupBox();
     
    5252      this.parseBtn = new System.Windows.Forms.Button();
    5353      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>();
    5655      this.errorOutput = new System.Windows.Forms.Label();
    5756      ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     
    7473      // splitContainer1.Panel2
    7574      //
    76       this.splitContainer1.Panel2.Controls.Add(this.constraintsOutput);
     75      this.splitContainer1.Panel2.Controls.Add(this.intervalConstraintsView);
    7776      this.splitContainer1.Size = new System.Drawing.Size(888, 629);
    7877      this.splitContainer1.SplitterDistance = 296;
     
    136135                         "5. Follow the steps 3-5 from above";
    137136      //
    138       // constraintsOutput
     137      // intervalConstraintsView
    139138      //
    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;
    145144      //
    146145      // errorOutput
     
    178177    private System.Windows.Forms.Button parseBtn;
    179178    private System.Windows.Forms.Label label1;
     179    private HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint> intervalConstraintsView;
    180180    private System.Windows.Forms.TextBox constraintsInput;
    181181    private System.Windows.Forms.Label errorOutput;
    182182
    183     //private System.Windows.Forms.Label constraintsOutput;
    184     private HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint> constraintsOutput;
    185183  }
    186184}
Note: See TracChangeset for help on using the changeset viewer.