Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17432 for branches


Ignore:
Timestamp:
02/10/20 17:02:41 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • tree view is expanded on default now
  • fixed a bug with wrong anchors in JsonItemRangeControl and JsonItemValueControl
  • fixed a bug with wrong width for loaded user controls in ExportJsonDialog
Location:
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs

    r17431 r17432  
    3838        BuildTreeNode(parent, Root);
    3939        treeView.Nodes.Add(parent);
     40        treeView.ExpandAll();
     41       
    4042      }
    4143    }
     
    8890        vm.TreeView = treeView;
    8991        UserControl control = vm.GetControl();
    90         if (control != null) {
    91           control.Dock = DockStyle.Fill;
    92           control.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
    93         }
    9492        Hash2Control.Add(node.GetHashCode(), control);
    9593        if (item.Children != null) {
     
    121119   
    122120    private void treeView_AfterSelect(object sender, TreeViewEventArgs e) {
    123       if(Hash2Control.TryGetValue(treeView.SelectedNode.GetHashCode(), out UserControl ctrl)) {
     121      if(Hash2Control.TryGetValue(treeView.SelectedNode.GetHashCode(), out UserControl control)) {
    124122        panel.Controls.Clear();
    125         if (ctrl != null) {
    126           panel.Controls.Add(ctrl);
     123        if (control != null) {
     124          panel.Controls.Add(control);
     125          control.Width = panel.Width;
     126          control.Dock = DockStyle.Fill;
     127          control.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
    127128        }
    128129        panel.Refresh();
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs

    r17410 r17432  
    8888      // numericRangeControl1
    8989      //
     90      this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     91            | System.Windows.Forms.AnchorStyles.Right)));
    9092      this.numericRangeControl1.Location = new System.Drawing.Point(9, 145);
    9193      this.numericRangeControl1.Name = "numericRangeControl1";
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs

    r17411 r17432  
    5050      //
    5151      this.numericRangeControl1.Location = new System.Drawing.Point(9, 101);
     52      this.numericRangeControl1.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
    5253      this.numericRangeControl1.Name = "numericRangeControl1";
    5354      this.numericRangeControl1.Size = new System.Drawing.Size(487, 112);
Note: See TracChangeset for help on using the changeset viewer.