Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/14 16:44:47 (11 years ago)
Author:
sbreuer
Message:
  • make textboxes readonly and resize themm
  • redraw datagrid after sorting
Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views
Files:
2 edited

Legend:

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

    r10253 r10317  
    3030      // rowsTextBox
    3131      //
     32      this.rowsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
     33      this.rowsTextBox.Enabled = false;
    3234      this.errorProvider.SetIconAlignment(this.rowsTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    3335      this.errorProvider.SetIconPadding(this.rowsTextBox, 2);
    3436      this.rowsTextBox.ReadOnly = true;
    35       this.rowsTextBox.Size = new System.Drawing.Size(296, 20);
     37      this.rowsTextBox.Size = new System.Drawing.Size(71, 20);
    3638      //
    3739      // columnsTextBox
    3840      //
     41      this.columnsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
     42      this.columnsTextBox.Enabled = false;
    3943      this.columnsTextBox.ReadOnly = true;
    40       this.columnsTextBox.Size = new System.Drawing.Size(296, 20);
     44      this.columnsTextBox.Size = new System.Drawing.Size(71, 20);
    4145      //
    4246      // statisticsTextBox
     
    4650      // btnApplySort
    4751      //
    48       this.btnApplySort.Location = new System.Drawing.Point(398, 18);
     52      this.btnApplySort.Location = new System.Drawing.Point(241, 19);
    4953      this.btnApplySort.Name = "btnApplySort";
    5054      this.btnApplySort.Size = new System.Drawing.Size(75, 23);
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataGridContentView.cs

    r10311 r10317  
    3636    }
    3737
     38    protected override void SetEnabledStateOfControls() {
     39      base.SetEnabledStateOfControls();
     40      rowsTextBox.ReadOnly = true;
     41      columnsTextBox.ReadOnly = true;
     42    }
     43
    3844    private void btnApplySort_Click(object sender, System.EventArgs e) {
    3945      Content.PreprocessingDataManipulation.reOrderToIndices(virtualRowIndices);
     46      OnContentChanged();
    4047    }
    4148  }
Note: See TracChangeset for help on using the changeset viewer.