Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/10 12:03:25 (14 years ago)
Author:
mkommend
Message:

adapted view captions (ticket #893)

Location:
trunk/sources/HeuristicLab.Data.Views/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/BoolValueView.cs

    r3566 r3764  
    4444    public BoolValueView() {
    4545      InitializeComponent();
    46       Caption = "BoolValue View";
    4746    }
    4847
     
    5958      base.OnContentChanged();
    6059      if (Content == null) {
    61         Caption = "BoolValue View";
    6260        valueCheckBox.Checked = false;
    6361      } else {
    64         Caption = Content.ToString() + " (" + Content.GetType().Name + ")";
    6562        valueCheckBox.Checked = Content.Value;
    6663      }
  • trunk/sources/HeuristicLab.Data.Views/3.3/ComparisonView.cs

    r3566 r3764  
    4444    public ComparisonView() {
    4545      InitializeComponent();
    46       Caption = "Comparison View";
    4746      valueComboBox.DataSource = Enum.GetValues(typeof(ComparisonType));
    4847    }
     
    6059    protected override void OnContentChanged() {
    6160      base.OnContentChanged();
    62       if (Content == null) {
    63         Caption = "Comparison View";
     61      if (Content == null)
    6462        valueComboBox.Enabled = false;
    65       } else {
    66         Caption = Content.ToString() + " (" + Content.GetType().Name + ")";
     63      else
    6764        valueComboBox.SelectedItem = Content.Value;
    68       }
     65
    6966      SetEnabledStateOfControls();
    7067    }
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs

    r3566 r3764  
    4747    public StringConvertibleArrayView() {
    4848      InitializeComponent();
    49       Caption = "StringConvertibleArray View";
    5049      errorProvider.SetIconAlignment(lengthTextBox, ErrorIconAlignment.MiddleLeft);
    5150      errorProvider.SetIconPadding(lengthTextBox, 2);
     
    6766      base.OnContentChanged();
    6867      if (Content == null) {
    69         Caption = "StringConvertibleArray View";
    7068        lengthTextBox.Text = "";
    7169        dataGridView.Rows.Clear();
    7270        dataGridView.Columns.Clear();
    73       } else {
    74         Caption = "StringConvertibleArray (" + Content.GetType().Name + ")";
     71      } else
    7572        UpdateData();
    76       }
    7773      SetEnabledStateOfControls();
    7874    }
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r3714 r3764  
    5353    public StringConvertibleMatrixView() {
    5454      InitializeComponent();
    55       Caption = "StringConvertibleMatrix View";
    5655      errorProvider.SetIconAlignment(rowsTextBox, ErrorIconAlignment.MiddleLeft);
    5756      errorProvider.SetIconPadding(rowsTextBox, 2);
     
    8079      base.OnContentChanged();
    8180      if (Content == null) {
    82         Caption = "StringConvertibleMatrix View";
    8381        rowsTextBox.Text = "";
    8482        columnsTextBox.Text = "";
     
    8684        dataGridView.Columns.Clear();
    8785        virtualRowIndizes = new int[0];
    88       } else {
    89         Caption = "StringConvertibleMatrix (" + Content.GetType().Name + ")";
     86      } else
    9087        UpdateData();
    91       }
     88
    9289      SetEnabledStateOfControls();
    9390    }
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs

    r3566 r3764  
    4545    public StringConvertibleValueView() {
    4646      InitializeComponent();
    47       Caption = "StringConvertibleValue View";
    4847      errorProvider.SetIconAlignment(valueTextBox, ErrorIconAlignment.MiddleLeft);
    4948      errorProvider.SetIconPadding(valueTextBox, 2);
     
    6362      base.OnContentChanged();
    6463      if (Content == null) {
    65         Caption = "StringConvertibleValue View";
    6664        valueTextBox.Text = string.Empty;
    67       } else {
    68         Caption = Content.GetValue() + " (" + Content.GetType().Name + ")";
     65      } else
    6966        valueTextBox.Text = Content.GetValue();
    70       }
     67
    7168      SetEnabledStateOfControls();
    7269    }
Note: See TracChangeset for help on using the changeset viewer.