Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/17 12:29:59 (7 years ago)
Author:
pfleck
Message:

#2709

  • Fixed initial selection of the grouping text box (empty string instead of null to select the first entry).
  • General code fixes (removed unnessecary bank lines and code, class member order, ...)
File:
1 edited

Legend:

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

    r14185 r14996  
    4343
    4444  public partial class SearchAndReplaceDialog : Form {
    45     private string[] cmbItemsText = { "Value", "Average", "Median", "Random", "Most Common", "Interpolation" };
    46     private string[] cmbComparisonOperatorText = { "==", "<", "<=", ">", ">=", "!=" };
     45    private static readonly string[] ItemsText = { "Value", "Average", "Median", "Random", "Most Common", "Interpolation" };
     46    private static readonly string[] ComparisonOperatorText = { "==", "<", "<=", ">", ">=", "!=" };
    4747
    4848    public SearchAndReplaceDialog() {
    4949      InitializeComponent();
    50       cmbReplaceWith.Items.AddRange(cmbItemsText);
     50      cmbReplaceWith.Items.AddRange(ItemsText);
    5151      cmbReplaceWith.SelectedIndex = (int)ReplaceAction.Value;
    52       cmbComparisonOperator.Items.AddRange(cmbComparisonOperatorText);
     52      cmbComparisonOperator.Items.AddRange(ComparisonOperatorText);
    5353      cmbComparisonOperator.SelectedIndex = (int)ComparisonOperation.Equal;
    5454    }
Note: See TracChangeset for help on using the changeset viewer.