Free cookie consent management tool by TermsFeed Policy Generator

Changeset 456


Ignore:
Timestamp:
08/06/08 15:31:22 (16 years ago)
Author:
gkronber
Message:

fixed #234 GUI (layout of SvmExporter is botched).
Also added line numbers in the row headers

File:
1 edited

Legend:

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

    r455 r456  
    5050        for(int j = 0; j < dataset.Columns; j++) {
    5151          dataGridView.Rows[i].Cells[j].Value = dataset.GetValue(i, j);
     52          dataGridView.Rows[i].HeaderCell.Value = i.ToString();
    5253        }
    5354      }
     
    6465
    6566    private void InitializeComponent() {
     67      System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
    6668      this.dataGridView = new System.Windows.Forms.DataGridView();
    6769      this.helpLabel = new System.Windows.Forms.Label();
     
    7476      this.dataGridView.AllowUserToAddRows = false;
    7577      this.dataGridView.AllowUserToDeleteRows = false;
    76       this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     78      this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     79                  | System.Windows.Forms.AnchorStyles.Left)
    7780                  | System.Windows.Forms.AnchorStyles.Right)));
    7881      this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     
    8083      this.dataGridView.Name = "dataGridView";
    8184      this.dataGridView.ReadOnly = true;
     85      dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
     86      dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
     87      dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     88      dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
     89      dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     90      dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     91      dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     92      this.dataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle1;
     93      this.dataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
    8294      this.dataGridView.Size = new System.Drawing.Size(568, 200);
    8395      this.dataGridView.TabIndex = 0;
     
    95107      // nextButton
    96108      //
     109      this.nextButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    97110      this.nextButton.Location = new System.Drawing.Point(505, 231);
    98111      this.nextButton.Name = "nextButton";
Note: See TracChangeset for help on using the changeset viewer.