Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/13 15:31:26 (11 years ago)
Author:
psteiner
Message:

Added Try Out Algorithmn button and renamed items

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataPreprocessingView.cs

    r10246 r10247  
    5151      listViewItemItemMapping[contentListViewItem] = dataGridContent;
    5252
    53       listView1.Items.Add(contentListViewItem);
     53      contentListView.Items.Add(contentListViewItem);
    5454    }
    5555
     
    6161    private void listView1_SelectedIndexChanged(object sender, EventArgs e) {
    6262
    63         if (listView1.SelectedItems.Count > 0)
     63        if (contentListView.SelectedItems.Count > 0)
    6464        {
    65             ListViewItem listViewItem = (ListViewItem)listView1.SelectedItems[0];
     65            ListViewItem listViewItem = (ListViewItem)contentListView.SelectedItems[0];
    6666            this.viewHost.Content = listViewItemItemMapping[listViewItem];
    6767        }
    6868    }
    6969
    70     private void groupBox1_Enter(object sender, EventArgs e) {
    71 
     70    private void listView1_DoubleClick(object sender, EventArgs e) {
     71      ListViewItem listViewItem = (ListViewItem)contentListView.SelectedItems[0];
     72      MainFormManager.MainForm.ShowContent(listViewItemItemMapping[listViewItem]);
    7273    }
    7374
    74     private void listView1_DoubleClick(object sender, EventArgs e) {
    75       ListViewItem listViewItem = (ListViewItem)listView1.SelectedItems[0];
    76       MainFormManager.MainForm.ShowContent(listViewItemItemMapping[listViewItem]);
     75    private void tryOutAlgorithmButton_Click(object sender, EventArgs e)
     76    {
     77
    7778    }
    7879
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataPreprocessingView.designer.cs

    r10239 r10247  
    2525    private void InitializeComponent() {
    2626      this.splitContainer1 = new System.Windows.Forms.SplitContainer();
    27       this.listView1 = new System.Windows.Forms.ListView();
    28       this.groupBox1 = new System.Windows.Forms.GroupBox();
     27      this.contentListView = new System.Windows.Forms.ListView();
     28      this.tryOutAlgorithmButton = new System.Windows.Forms.Button();
     29      this.saveButton = new System.Windows.Forms.Button();
    2930      this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
    3031      ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     
    3233      this.splitContainer1.Panel2.SuspendLayout();
    3334      this.splitContainer1.SuspendLayout();
    34       this.groupBox1.SuspendLayout();
    3535      this.SuspendLayout();
    3636      //
     
    4343      // splitContainer1.Panel1
    4444      //
    45       this.splitContainer1.Panel1.Controls.Add(this.listView1);
     45      this.splitContainer1.Panel1.Controls.Add(this.contentListView);
    4646      //
    4747      // splitContainer1.Panel2
    4848      //
    49       this.splitContainer1.Panel2.Controls.Add(this.groupBox1);
    50       this.splitContainer1.Size = new System.Drawing.Size(758, 390);
    51       this.splitContainer1.SplitterDistance = 252;
     49      this.splitContainer1.Panel2.Controls.Add(this.viewHost);
     50      this.splitContainer1.Panel2.Controls.Add(this.saveButton);
     51      this.splitContainer1.Panel2.Controls.Add(this.tryOutAlgorithmButton);
     52      this.splitContainer1.Size = new System.Drawing.Size(838, 449);
     53      this.splitContainer1.SplitterDistance = 278;
    5254      this.splitContainer1.TabIndex = 0;
    5355      //
    54       // listView1
     56      // contentListView
    5557      //
    56       this.listView1.Location = new System.Drawing.Point(13, 15);
    57       this.listView1.Name = "listView1";
    58       this.listView1.Size = new System.Drawing.Size(185, 290);
    59       this.listView1.TabIndex = 0;
    60       this.listView1.UseCompatibleStateImageBehavior = false;
    61       this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
    62       this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
     58      this.contentListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     59            | System.Windows.Forms.AnchorStyles.Left)
     60            | System.Windows.Forms.AnchorStyles.Right)));
     61      this.contentListView.Location = new System.Drawing.Point(12, 15);
     62      this.contentListView.Name = "contentListView";
     63      this.contentListView.Size = new System.Drawing.Size(254, 389);
     64      this.contentListView.TabIndex = 0;
     65      this.contentListView.UseCompatibleStateImageBehavior = false;
     66      this.contentListView.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
     67      this.contentListView.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
    6368      //
    64       // groupBox1
     69      // tryOutAlgorithmButton
    6570      //
    66       this.groupBox1.Controls.Add(this.viewHost);
    67       this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
    68       this.groupBox1.Location = new System.Drawing.Point(0, 0);
    69       this.groupBox1.Name = "groupBox1";
    70       this.groupBox1.Size = new System.Drawing.Size(502, 390);
    71       this.groupBox1.TabIndex = 1;
    72       this.groupBox1.TabStop = false;
    73       this.groupBox1.Text = "groupBox1";
    74       this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
     71      this.tryOutAlgorithmButton.Location = new System.Drawing.Point(443, 410);
     72      this.tryOutAlgorithmButton.Name = "tryOutAlgorithmButton";
     73      this.tryOutAlgorithmButton.Size = new System.Drawing.Size(97, 23);
     74      this.tryOutAlgorithmButton.TabIndex = 2;
     75      this.tryOutAlgorithmButton.Text = "Try Out Algorithm";
     76      this.tryOutAlgorithmButton.UseVisualStyleBackColor = true;
     77      this.tryOutAlgorithmButton.Click += new System.EventHandler(this.tryOutAlgorithmButton_Click);
     78      //
     79      // saveButton
     80      //
     81      this.saveButton.Location = new System.Drawing.Point(343, 410);
     82      this.saveButton.Name = "saveButton";
     83      this.saveButton.Size = new System.Drawing.Size(75, 23);
     84      this.saveButton.TabIndex = 3;
     85      this.saveButton.Text = "Save";
     86      this.saveButton.UseVisualStyleBackColor = true;
    7587      //
    7688      // viewHost
     
    8294      this.viewHost.Content = null;
    8395      this.viewHost.Enabled = false;
    84       this.viewHost.Location = new System.Drawing.Point(6, 19);
     96      this.viewHost.Location = new System.Drawing.Point(14, 15);
    8597      this.viewHost.Name = "viewHost";
    8698      this.viewHost.ReadOnly = false;
    87       this.viewHost.Size = new System.Drawing.Size(490, 365);
    88       this.viewHost.TabIndex = 0;
     99      this.viewHost.Size = new System.Drawing.Size(526, 389);
     100      this.viewHost.TabIndex = 4;
    89101      this.viewHost.ViewsLabelVisible = true;
    90102      this.viewHost.ViewType = null;
     
    96108      this.Controls.Add(this.splitContainer1);
    97109      this.Name = "DataPreprocessingView";
    98       this.Size = new System.Drawing.Size(758, 390);
     110      this.Size = new System.Drawing.Size(838, 449);
    99111      this.splitContainer1.Panel1.ResumeLayout(false);
    100112      this.splitContainer1.Panel2.ResumeLayout(false);
    101113      ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
    102114      this.splitContainer1.ResumeLayout(false);
    103       this.groupBox1.ResumeLayout(false);
    104115      this.ResumeLayout(false);
    105116
     
    109120
    110121    private System.Windows.Forms.SplitContainer splitContainer1;
    111     private System.Windows.Forms.ListView listView1;
    112     private System.Windows.Forms.GroupBox groupBox1;
    113     protected MainForm.WindowsForms.ViewHost viewHost;
     122    private System.Windows.Forms.ListView contentListView;
     123    private System.Windows.Forms.Button saveButton;
     124    private System.Windows.Forms.Button tryOutAlgorithmButton;
     125    private MainForm.WindowsForms.ViewHost viewHost;
    114126
    115127  }
Note: See TracChangeset for help on using the changeset viewer.