Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/08 08:00:33 (17 years ago)
Author:
gkronber
Message:

removed export button and attached the contextMenuStrip directly to the dataGridView instead of each column. (preparation for #143)

Location:
trunk/sources/HeuristicLab.DataAnalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAnalysis/DatasetView.cs

    r232 r233  
    7272          dataGridView.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;
    7373          dataGridView.Columns[i].Name = GetColumnName(i);
    74           dataGridView.Columns[i].ContextMenuStrip = contextMenuStrip;
    7574        }
    7675        dataGridView.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
     
    105104      double result;
    106105      return element != null && double.TryParse(element, out result);
    107     }
    108 
    109     private void exportButton_Click(object sender, EventArgs e) {
    110       throw new NotImplementedException();
    111106    }
    112107
  • trunk/sources/HeuristicLab.DataAnalysis/DatasetView.designer.cs

    r232 r233  
    5353      this.nameLabel = new System.Windows.Forms.Label();
    5454      this.nameTextBox = new System.Windows.Forms.TextBox();
    55       this.exportButton = new System.Windows.Forms.Button();
    5655      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    5756      this.scaleValuesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     
    8584                  | System.Windows.Forms.AnchorStyles.Right)));
    8685      this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    87       this.dataGridView.Location = new System.Drawing.Point(3, 84);
     86      this.dataGridView.ContextMenuStrip = this.contextMenuStrip;
     87      this.dataGridView.Location = new System.Drawing.Point(3, 55);
    8888      this.dataGridView.Name = "dataGridView";
    89       this.dataGridView.Size = new System.Drawing.Size(554, 456);
     89      this.dataGridView.Size = new System.Drawing.Size(554, 485);
    9090      this.dataGridView.TabIndex = 3;
    9191      this.dataGridView.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dataGridView_CellValidating);
     
    126126      this.nameTextBox.TabIndex = 7;
    127127      //
    128       // exportButton
    129       //
    130       this.exportButton.Location = new System.Drawing.Point(6, 55);
    131       this.exportButton.Name = "exportButton";
    132       this.exportButton.Size = new System.Drawing.Size(75, 23);
    133       this.exportButton.TabIndex = 11;
    134       this.exportButton.Text = "Export ...";
    135       this.exportButton.UseVisualStyleBackColor = true;
    136       this.exportButton.Click += new System.EventHandler(this.exportButton_Click);
    137       //
    138128      // contextMenuStrip
    139129      //
     
    163153      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    164154      this.Controls.Add(this.nameTextBox);
    165       this.Controls.Add(this.exportButton);
    166155      this.Controls.Add(this.nameLabel);
    167156      this.Controls.Add(this.columnsLabel);
     
    188177    private System.Windows.Forms.Label nameLabel;
    189178    private System.Windows.Forms.TextBox nameTextBox;
    190     private System.Windows.Forms.Button exportButton;
    191179    private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
    192180    private System.Windows.Forms.ToolStripMenuItem scaleValuesToolStripMenuItem;
Note: See TracChangeset for help on using the changeset viewer.