Free cookie consent management tool by TermsFeed Policy Generator

Changeset 458


Ignore:
Timestamp:
08/06/08 15:32:58 (16 years ago)
Author:
gkronber
Message:

added line numbers for the grid-view of the dataset

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

Legend:

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

    r454 r458  
    7777          for (int j = 0; j < columns; j++) {
    7878            dataGridView.Rows[i].Cells[j].Value = Dataset.GetValue(i, j);
     79            dataGridView.Rows[i].HeaderCell.Value = i.ToString();
    7980          }
    8081        }
  • trunk/sources/HeuristicLab.DataAnalysis/DatasetView.designer.cs

    r312 r458  
    4646    private void InitializeComponent() {
    4747      this.components = new System.ComponentModel.Container();
     48      System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
    4849      this.rowsTextBox = new System.Windows.Forms.TextBox();
    4950      this.columnsTextBox = new System.Windows.Forms.TextBox();
     
    5152      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    5253      this.scaleValuesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     54      this.scaleValuesmanuallyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     55      this.showScalingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    5356      this.originalValuesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    5457      this.rowsLabel = new System.Windows.Forms.Label();
     
    5659      this.nameLabel = new System.Windows.Forms.Label();
    5760      this.nameTextBox = new System.Windows.Forms.TextBox();
    58       this.showScalingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    59       this.scaleValuesmanuallyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    6061      ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
    6162      this.contextMenuStrip.SuspendLayout();
     
    8990      this.dataGridView.Location = new System.Drawing.Point(3, 55);
    9091      this.dataGridView.Name = "dataGridView";
     92      dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
     93      dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
     94      dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     95      dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
     96      dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     97      dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     98      dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     99      this.dataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle1;
     100      this.dataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
    91101      this.dataGridView.Size = new System.Drawing.Size(554, 485);
    92102      this.dataGridView.TabIndex = 3;
     
    101111            this.originalValuesToolStripMenuItem});
    102112      this.contextMenuStrip.Name = "contextMenuStrip";
    103       this.contextMenuStrip.Size = new System.Drawing.Size(198, 114);
     113      this.contextMenuStrip.Size = new System.Drawing.Size(198, 92);
    104114      //
    105115      // scaleValuesToolStripMenuItem
     
    109119      this.scaleValuesToolStripMenuItem.Text = "Scale values [0..1]";
    110120      this.scaleValuesToolStripMenuItem.Click += new System.EventHandler(this.scaleValuesToolStripMenuItem_Click);
     121      //
     122      // scaleValuesmanuallyToolStripMenuItem
     123      //
     124      this.scaleValuesmanuallyToolStripMenuItem.Name = "scaleValuesmanuallyToolStripMenuItem";
     125      this.scaleValuesmanuallyToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
     126      this.scaleValuesmanuallyToolStripMenuItem.Text = "Scale values (manually)";
     127      this.scaleValuesmanuallyToolStripMenuItem.Click += new System.EventHandler(this.scaleValuesmanuallyToolStripMenuItem_Click);
     128      //
     129      // showScalingToolStripMenuItem
     130      //
     131      this.showScalingToolStripMenuItem.Name = "showScalingToolStripMenuItem";
     132      this.showScalingToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
     133      this.showScalingToolStripMenuItem.Text = "Show scaling...";
     134      this.showScalingToolStripMenuItem.Click += new System.EventHandler(this.showScalingToolStripMenuItem_Click);
    111135      //
    112136      // originalValuesToolStripMenuItem
     
    151175      this.nameTextBox.Size = new System.Drawing.Size(219, 20);
    152176      this.nameTextBox.TabIndex = 7;
    153       //
    154       // showScalingToolStripMenuItem
    155       //
    156       this.showScalingToolStripMenuItem.Name = "showScalingToolStripMenuItem";
    157       this.showScalingToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
    158       this.showScalingToolStripMenuItem.Text = "Show scaling...";
    159       this.showScalingToolStripMenuItem.Click += new System.EventHandler(this.showScalingToolStripMenuItem_Click);
    160       //
    161       // scaleValuesmanuallyToolStripMenuItem
    162       //
    163       this.scaleValuesmanuallyToolStripMenuItem.Name = "scaleValuesmanuallyToolStripMenuItem";
    164       this.scaleValuesmanuallyToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
    165       this.scaleValuesmanuallyToolStripMenuItem.Text = "Scale values (manually)";
    166       this.scaleValuesmanuallyToolStripMenuItem.Click += new System.EventHandler(this.scaleValuesmanuallyToolStripMenuItem_Click);
    167177      //
    168178      // DatasetView
Note: See TracChangeset for help on using the changeset viewer.