Ignore:
Timestamp:
01/05/17 15:50:40 (5 years ago)
Author:
pfleck
Message:

#2709 Added shortcuts for select input/all/none variables in datagrid and statistics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs

    r14525 r14546  
    686686      }
    687687    }
     688
     689    private void checkInputsTargetButton_Click(object sender, EventArgs e) {
     690      foreach (DataGridViewColumn column in DataGridView.Columns) {
     691        var variable = column.HeaderText;
     692        bool isInputTarget = Content.PreProcessingData.InputVariables.Contains(variable)
     693          || Content.PreProcessingData.TargetVariable == variable;
     694        column.Visible = isInputTarget;
     695      }
     696    }
     697
     698    private void checkAllButton_Click(object sender, EventArgs e) {
     699      foreach (DataGridViewColumn column in DataGridView.Columns) {
     700        column.Visible = true;
     701      }
     702    }
     703
     704    private void uncheckAllButton_Click(object sender, EventArgs e) {
     705      foreach (DataGridViewColumn column in DataGridView.Columns) {
     706        column.Visible = false;
     707      }
     708    }
    688709  }
    689710}
Note: See TracChangeset for help on using the changeset viewer.