Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/10 17:38:05 (14 years ago)
Author:
gkronber
Message:

Changed CheckedItemCollectionView and CheckedItemListView to extend from ItemCollectionView and ItemListView. #992 (CheckedItemList and CheckedItemCollection is necessary)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemCollectionView.Designer.cs

    r3558 r3595  
    1 #region License Information
     1#region License Information
    22/* HeuristicLab
    33 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     
    2020#endregion
    2121
    22 using System;
    23 using System.Windows.Forms;
    24 using System.ComponentModel;
    25 
    2622namespace HeuristicLab.Core.Views {
    2723  partial class CheckedItemCollectionView<T> {
    28     /// <summary>
     24    /// <summary> 
    2925    /// Required designer variable.
    3026    /// </summary>
    3127    private System.ComponentModel.IContainer components = null;
    3228
    33     /// <summary>
     29    /// <summary> 
    3430    /// Clean up any resources being used.
    3531    /// </summary>
    3632    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    3733    protected override void Dispose(bool disposing) {
    38       if (disposing) {
    39         if (typeSelectorDialog != null) typeSelectorDialog.Dispose();
    40         foreach (ListViewItem item in itemsListView.Items) {
    41           ((T)item.Tag).ItemImageChanged -= new EventHandler(Item_ItemImageChanged);
    42           ((T)item.Tag).ToStringChanged -= new EventHandler(Item_ToStringChanged);
    43         }
    44         if (components != null) components.Dispose();
     34      if (disposing && (components != null)) {
     35        components.Dispose();
    4536      }
    4637      base.Dispose(disposing);
    4738    }
    4839
    49     #region Windows Form Designer generated code
     40    #region Component Designer generated code
    5041
    51     /// <summary>
    52     /// Required method for Designer support - do not modify
     42    /// <summary> 
     43    /// Required method for Designer support - do not modify 
    5344    /// the contents of this method with the code editor.
    5445    /// </summary>
    5546    private void InitializeComponent() {
    56       this.components = new System.ComponentModel.Container();
    57       this.splitContainer = new System.Windows.Forms.SplitContainer();
    58       this.itemsListView = new System.Windows.Forms.ListView();
    59       this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
    60       this.imageList = new System.Windows.Forms.ImageList(this.components);
    61       this.sortDescendingButton = new System.Windows.Forms.Button();
    62       this.sortAscendingButton = new System.Windows.Forms.Button();
    63       this.removeButton = new System.Windows.Forms.Button();
    64       this.addButton = new System.Windows.Forms.Button();
    65       this.detailsGroupBox = new System.Windows.Forms.GroupBox();
    66       this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
    67       this.itemsGroupBox = new System.Windows.Forms.GroupBox();
    68       this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    69       this.splitContainer.Panel1.SuspendLayout();
    70       this.splitContainer.Panel2.SuspendLayout();
    71       this.splitContainer.SuspendLayout();
    72       this.detailsGroupBox.SuspendLayout();
    73       this.itemsGroupBox.SuspendLayout();
    74       this.SuspendLayout();
    75       //
    76       // splitContainer
    77       //
    78       this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
    79       this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
    80       this.splitContainer.Location = new System.Drawing.Point(3, 16);
    81       this.splitContainer.Name = "splitContainer";
    82       //
    83       // splitContainer.Panel1
    84       //
    85       this.splitContainer.Panel1.Controls.Add(this.itemsListView);
    86       this.splitContainer.Panel1.Controls.Add(this.sortDescendingButton);
    87       this.splitContainer.Panel1.Controls.Add(this.sortAscendingButton);
    88       this.splitContainer.Panel1.Controls.Add(this.removeButton);
    89       this.splitContainer.Panel1.Controls.Add(this.addButton);
    90       this.splitContainer.Panel1MinSize = 100;
    91       //
    92       // splitContainer.Panel2
    93       //
    94       this.splitContainer.Panel2.Controls.Add(this.detailsGroupBox);
    95       this.splitContainer.Size = new System.Drawing.Size(526, 364);
    96       this.splitContainer.SplitterDistance = 250;
    97       this.splitContainer.TabIndex = 0;
    98       //
    99       // itemsListView
    100       //
    101       this.itemsListView.AllowDrop = true;
    102       this.itemsListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    103                   | System.Windows.Forms.AnchorStyles.Left)
    104                   | System.Windows.Forms.AnchorStyles.Right)));
    105       this.itemsListView.CheckBoxes = true;
    106       this.itemsListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
    107             this.columnHeader1});
    108       this.itemsListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
    109       this.itemsListView.HideSelection = false;
    110       this.itemsListView.Location = new System.Drawing.Point(3, 33);
    111       this.itemsListView.Name = "itemsListView";
    112       this.itemsListView.ShowItemToolTips = true;
    113       this.itemsListView.Size = new System.Drawing.Size(244, 327);
    114       this.itemsListView.SmallImageList = this.imageList;
    115       this.itemsListView.TabIndex = 4;
    116       this.itemsListView.UseCompatibleStateImageBehavior = false;
    117       this.itemsListView.View = System.Windows.Forms.View.Details;
    118       this.itemsListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.itemsListView_ItemChecked);
    119       this.itemsListView.SelectedIndexChanged += new System.EventHandler(this.itemsListView_SelectedIndexChanged);
    120       this.itemsListView.DoubleClick += new System.EventHandler(this.itemsListView_DoubleClick);
    121       this.itemsListView.DragDrop += new System.Windows.Forms.DragEventHandler(this.itemsListView_DragDrop);
    122       this.itemsListView.DragEnter += new System.Windows.Forms.DragEventHandler(this.itemsListView_DragEnterOver);
    123       this.itemsListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.itemsListView_KeyDown);
    124       this.itemsListView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.itemsListView_ItemDrag);
    125       this.itemsListView.DragOver += new System.Windows.Forms.DragEventHandler(this.itemsListView_DragEnterOver);
    126       //
    127       // imageList
    128       //
    129       this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
    130       this.imageList.ImageSize = new System.Drawing.Size(16, 16);
    131       this.imageList.TransparentColor = System.Drawing.Color.Transparent;
    132       //
    133       // sortDescendingButton
    134       //
    135       this.sortDescendingButton.Enabled = false;
    136       this.sortDescendingButton.Image = HeuristicLab.Common.Resources.VS2008ImageLibrary.SortUp;
    137       this.sortDescendingButton.Location = new System.Drawing.Point(33, 3);
    138       this.sortDescendingButton.Name = "sortDescendingButton";
    139       this.sortDescendingButton.Size = new System.Drawing.Size(24, 24);
    140       this.sortDescendingButton.TabIndex = 1;
    141       this.toolTip.SetToolTip(this.sortDescendingButton, "Sort Descending");
    142       this.sortDescendingButton.UseVisualStyleBackColor = true;
    143       this.sortDescendingButton.Click += new System.EventHandler(this.sortDescendingButton_Click);
    144       //
    145       // sortAscendingButton
    146       //
    147       this.sortAscendingButton.Enabled = false;
    148       this.sortAscendingButton.Image = HeuristicLab.Common.Resources.VS2008ImageLibrary.Sort;
    149       this.sortAscendingButton.Location = new System.Drawing.Point(63, 3);
    150       this.sortAscendingButton.Name = "sortAscendingButton";
    151       this.sortAscendingButton.Size = new System.Drawing.Size(24, 24);
    152       this.sortAscendingButton.TabIndex = 2;
    153       this.toolTip.SetToolTip(this.sortAscendingButton, "Sort Ascending");
    154       this.sortAscendingButton.UseVisualStyleBackColor = true;
    155       this.sortAscendingButton.Click += new System.EventHandler(this.sortAscendingButton_Click);
    156       //
    157       // removeButton
    158       //
    159       this.removeButton.Enabled = false;
    160       this.removeButton.Image = HeuristicLab.Common.Resources.VS2008ImageLibrary.Remove;
    161       this.removeButton.Location = new System.Drawing.Point(93, 3);
    162       this.removeButton.Name = "removeButton";
    163       this.removeButton.Size = new System.Drawing.Size(24, 24);
    164       this.removeButton.TabIndex = 3;
    165       this.toolTip.SetToolTip(this.removeButton, "Remove");
    166       this.removeButton.UseVisualStyleBackColor = true;
    167       this.removeButton.Click += new System.EventHandler(this.removeButton_Click);
    168       //
    169       // addButton
    170       //
    171       this.addButton.Image = HeuristicLab.Common.Resources.VS2008ImageLibrary.Add;
    172       this.addButton.Location = new System.Drawing.Point(3, 3);
    173       this.addButton.Name = "addButton";
    174       this.addButton.Size = new System.Drawing.Size(24, 24);
    175       this.addButton.TabIndex = 0;
    176       this.toolTip.SetToolTip(this.addButton, "Add");
    177       this.addButton.UseVisualStyleBackColor = true;
    178       this.addButton.Click += new System.EventHandler(this.addButton_Click);
    179       //
    180       // detailsGroupBox
    181       //
    182       this.detailsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    183                   | System.Windows.Forms.AnchorStyles.Left)
    184                   | System.Windows.Forms.AnchorStyles.Right)));
    185       this.detailsGroupBox.Controls.Add(this.viewHost);
    186       this.detailsGroupBox.Location = new System.Drawing.Point(3, 27);
    187       this.detailsGroupBox.Name = "detailsGroupBox";
    188       this.detailsGroupBox.Size = new System.Drawing.Size(266, 335);
    189       this.detailsGroupBox.TabIndex = 0;
    190       this.detailsGroupBox.TabStop = false;
    191       this.detailsGroupBox.Text = "Details";
    192       //
    193       // viewHost
    194       //
    195       this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    196                   | System.Windows.Forms.AnchorStyles.Left)
    197                   | System.Windows.Forms.AnchorStyles.Right)));
    198       this.viewHost.Caption = null;
    199       this.viewHost.Content = null;
    200       this.viewHost.Location = new System.Drawing.Point(6, 19);
    201       this.viewHost.Name = "viewHost";
    202       this.viewHost.ReadOnly = false;
    203       this.viewHost.Size = new System.Drawing.Size(254, 310);
    204       this.viewHost.TabIndex = 0;
    205       this.viewHost.ViewType = null;
    206       //
    207       // itemsGroupBox
    208       //
    209       this.itemsGroupBox.Controls.Add(this.splitContainer);
    210       this.itemsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
    211       this.itemsGroupBox.Location = new System.Drawing.Point(0, 0);
    212       this.itemsGroupBox.Name = "itemsGroupBox";
    213       this.itemsGroupBox.Size = new System.Drawing.Size(532, 383);
    214       this.itemsGroupBox.TabIndex = 0;
    215       this.itemsGroupBox.TabStop = false;
    216       this.itemsGroupBox.Text = "Items";
    217       //
    218       // CheckedItemCollectionView
    219       //
    220       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    221       this.Controls.Add(this.itemsGroupBox);
    222       this.Name = "CheckedItemCollectionView";
    223       this.Size = new System.Drawing.Size(532, 383);
    224       this.splitContainer.Panel1.ResumeLayout(false);
    225       this.splitContainer.Panel2.ResumeLayout(false);
    226       this.splitContainer.ResumeLayout(false);
    227       this.detailsGroupBox.ResumeLayout(false);
    228       this.itemsGroupBox.ResumeLayout(false);
    229       this.ResumeLayout(false);
    230 
     47      components = new System.ComponentModel.Container();
     48      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     49      base.itemsListView.CheckBoxes = true;
     50      base.itemsListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(itemsListView_ItemChecked);
    23151    }
    23252
    23353    #endregion
    234 
    235     protected System.Windows.Forms.SplitContainer splitContainer;
    236     protected System.Windows.Forms.ColumnHeader columnHeader1;
    237     protected GroupBox itemsGroupBox;
    238     protected ListView itemsListView;
    239     protected GroupBox detailsGroupBox;
    240     protected Button addButton;
    241     protected Button removeButton;
    242     protected ToolTip toolTip;
    243     protected ImageList imageList;
    244     protected HeuristicLab.MainForm.WindowsForms.ViewHost viewHost;
    245     protected Button sortAscendingButton;
    246     protected Button sortDescendingButton;
    24754  }
    24855}
Note: See TracChangeset for help on using the changeset viewer.