Changeset 3764 for trunk/sources/HeuristicLab.Data.Views/3.3
- Timestamp:
- 05/11/10 12:03:25 (14 years ago)
- 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 44 44 public BoolValueView() { 45 45 InitializeComponent(); 46 Caption = "BoolValue View";47 46 } 48 47 … … 59 58 base.OnContentChanged(); 60 59 if (Content == null) { 61 Caption = "BoolValue View";62 60 valueCheckBox.Checked = false; 63 61 } else { 64 Caption = Content.ToString() + " (" + Content.GetType().Name + ")";65 62 valueCheckBox.Checked = Content.Value; 66 63 } -
trunk/sources/HeuristicLab.Data.Views/3.3/ComparisonView.cs
r3566 r3764 44 44 public ComparisonView() { 45 45 InitializeComponent(); 46 Caption = "Comparison View";47 46 valueComboBox.DataSource = Enum.GetValues(typeof(ComparisonType)); 48 47 } … … 60 59 protected override void OnContentChanged() { 61 60 base.OnContentChanged(); 62 if (Content == null) { 63 Caption = "Comparison View"; 61 if (Content == null) 64 62 valueComboBox.Enabled = false; 65 } else { 66 Caption = Content.ToString() + " (" + Content.GetType().Name + ")"; 63 else 67 64 valueComboBox.SelectedItem = Content.Value; 68 } 65 69 66 SetEnabledStateOfControls(); 70 67 } -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
r3566 r3764 47 47 public StringConvertibleArrayView() { 48 48 InitializeComponent(); 49 Caption = "StringConvertibleArray View";50 49 errorProvider.SetIconAlignment(lengthTextBox, ErrorIconAlignment.MiddleLeft); 51 50 errorProvider.SetIconPadding(lengthTextBox, 2); … … 67 66 base.OnContentChanged(); 68 67 if (Content == null) { 69 Caption = "StringConvertibleArray View";70 68 lengthTextBox.Text = ""; 71 69 dataGridView.Rows.Clear(); 72 70 dataGridView.Columns.Clear(); 73 } else { 74 Caption = "StringConvertibleArray (" + Content.GetType().Name + ")"; 71 } else 75 72 UpdateData(); 76 }77 73 SetEnabledStateOfControls(); 78 74 } -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r3714 r3764 53 53 public StringConvertibleMatrixView() { 54 54 InitializeComponent(); 55 Caption = "StringConvertibleMatrix View";56 55 errorProvider.SetIconAlignment(rowsTextBox, ErrorIconAlignment.MiddleLeft); 57 56 errorProvider.SetIconPadding(rowsTextBox, 2); … … 80 79 base.OnContentChanged(); 81 80 if (Content == null) { 82 Caption = "StringConvertibleMatrix View";83 81 rowsTextBox.Text = ""; 84 82 columnsTextBox.Text = ""; … … 86 84 dataGridView.Columns.Clear(); 87 85 virtualRowIndizes = new int[0]; 88 } else { 89 Caption = "StringConvertibleMatrix (" + Content.GetType().Name + ")"; 86 } else 90 87 UpdateData(); 91 } 88 92 89 SetEnabledStateOfControls(); 93 90 } -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r3566 r3764 45 45 public StringConvertibleValueView() { 46 46 InitializeComponent(); 47 Caption = "StringConvertibleValue View";48 47 errorProvider.SetIconAlignment(valueTextBox, ErrorIconAlignment.MiddleLeft); 49 48 errorProvider.SetIconPadding(valueTextBox, 2); … … 63 62 base.OnContentChanged(); 64 63 if (Content == null) { 65 Caption = "StringConvertibleValue View";66 64 valueTextBox.Text = string.Empty; 67 } else { 68 Caption = Content.GetValue() + " (" + Content.GetType().Name + ")"; 65 } else 69 66 valueTextBox.Text = Content.GetValue(); 70 } 67 71 68 SetEnabledStateOfControls(); 72 69 }
Note: See TracChangeset
for help on using the changeset viewer.