Changeset 12205


Ignore:
Timestamp:
03/16/15 15:02:22 (7 years ago)
Author:
pfleck
Message:

#2025 Corrected index indices of items.

Location:
branches/NewItemDialog/HeuristicLab.Optimizer/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs

    r12203 r12205  
    7575      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
    7676      this.okButton.Enabled = false;
    77       this.okButton.Location = new System.Drawing.Point(456, 409);
     77      this.okButton.Location = new System.Drawing.Point(456, 502);
    7878      this.okButton.Name = "okButton";
    7979      this.okButton.Size = new System.Drawing.Size(75, 23);
     
    8787      this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    8888      this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    89       this.cancelButton.Location = new System.Drawing.Point(537, 409);
     89      this.cancelButton.Location = new System.Drawing.Point(537, 502);
    9090      this.cancelButton.Name = "cancelButton";
    9191      this.cancelButton.Size = new System.Drawing.Size(75, 23);
     
    120120      //
    121121      this.splitContainer.Panel2.Controls.Add(this.descriptionGroupBox);
    122       this.splitContainer.Size = new System.Drawing.Size(600, 391);
    123       this.splitContainer.SplitterDistance = 258;
     122      this.splitContainer.Size = new System.Drawing.Size(600, 484);
     123      this.splitContainer.SplitterDistance = 373;
    124124      this.splitContainer.TabIndex = 0;
    125125      this.splitContainer.TabStop = false;
     
    134134      this.availableItemsGroupBox.Name = "availableItemsGroupBox";
    135135      this.availableItemsGroupBox.Padding = new System.Windows.Forms.Padding(3, 15, 3, 3);
    136       this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 258);
     136      this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 373);
    137137      this.availableItemsGroupBox.TabIndex = 5;
    138138      this.availableItemsGroupBox.TabStop = false;
     
    162162      this.typesTreeView.SelectedImageIndex = 0;
    163163      this.typesTreeView.ShowNodeToolTips = true;
    164       this.typesTreeView.Size = new System.Drawing.Size(588, 211);
     164      this.typesTreeView.Size = new System.Drawing.Size(588, 326);
    165165      this.typesTreeView.TabIndex = 2;
    166166      this.typesTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.itemsTreeView_AfterSelect);
     
    182182      this.descriptionGroupBox.Location = new System.Drawing.Point(0, 0);
    183183      this.descriptionGroupBox.Name = "descriptionGroupBox";
    184       this.descriptionGroupBox.Size = new System.Drawing.Size(600, 129);
     184      this.descriptionGroupBox.Size = new System.Drawing.Size(600, 107);
    185185      this.descriptionGroupBox.TabIndex = 1;
    186186      this.descriptionGroupBox.TabStop = false;
     
    219219      this.descriptionTextBox.ReadOnly = true;
    220220      this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    221       this.descriptionTextBox.Size = new System.Drawing.Size(588, 77);
     221      this.descriptionTextBox.Size = new System.Drawing.Size(588, 55);
    222222      this.descriptionTextBox.TabIndex = 0;
    223223      this.descriptionTextBox.TabStop = false;
     
    227227      this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    228228      this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn;
    229       this.expandAllButton.Location = new System.Drawing.Point(12, 409);
     229      this.expandAllButton.Location = new System.Drawing.Point(12, 502);
    230230      this.expandAllButton.Name = "expandAllButton";
    231231      this.expandAllButton.Size = new System.Drawing.Size(23, 23);
     
    239239      this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    240240      this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut;
    241       this.collapseAllButton.Location = new System.Drawing.Point(41, 409);
     241      this.collapseAllButton.Location = new System.Drawing.Point(41, 502);
    242242      this.collapseAllButton.Name = "collapseAllButton";
    243243      this.collapseAllButton.Size = new System.Drawing.Size(23, 23);
     
    252252      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    253253      this.CancelButton = this.cancelButton;
    254       this.ClientSize = new System.Drawing.Size(624, 444);
     254      this.ClientSize = new System.Drawing.Size(624, 537);
    255255      this.Controls.Add(this.splitContainer);
    256256      this.Controls.Add(this.cancelButton);
  • branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.cs

    r12203 r12205  
    7070      imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Class);      // default icon
    7171      imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Namespace);  // plugins
    72       imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Interface);  // interfacesitemsListView.SmallImageList = new ImageList();
    73       imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Template);   // generic types
    7472
    7573      foreach (var category in categories) {
     
    8280        foreach (var creatable in category) {
    8381          string name = ItemAttribute.GetName(creatable);
    84           string version = ItemAttribute.GetVersion(creatable).ToString();
    85           string description = ItemAttribute.GetDescription(creatable);
    8682
    8783          var itemNode = new TreeNode(name) {
     
    8985            Tag = creatable
    9086          };
     87          categoryNode.Nodes.Add(itemNode);
     88          var image = ItemAttribute.GetImage(creatable);
     89          if (image != null) {
     90            imageList.Images.Add(image);
     91            itemNode.ImageIndex = imageList.Images.Count - 1;
     92          }
    9193          itemNode.SelectedImageIndex = itemNode.ImageIndex;
    92           categoryNode.Nodes.Add(itemNode);
    93 
    94           /*
    95           ListViewItem item = new ListViewItem(new string[] { name, version, description }, group);
    96           item.ImageIndex = 0;
    97           Image image = ItemAttribute.GetImage(creatable);
    98           if (image != null) {
    99             itemsListView.SmallImageList.Images.Add(image);
    100             item.ImageIndex = itemsListView.SmallImageList.Images.Count - 1;
    101           }
    102           item.Tag = creatable;
    103           itemsListView.Items.Add(item);*/
    10494        }
    10595        if (categoryNode.Nodes.Count > 0)
Note: See TracChangeset for help on using the changeset viewer.