Changeset 6020 for branches/histogram/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs
- Timestamp:
- 04/18/11 17:33:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs
r6014 r6020 20 20 #endregion 21 21 22 using System.Drawing; 22 23 using System.Windows.Forms; 23 24 using HeuristicLab.MainForm; … … 47 48 try { 48 49 if (Content == null) { 50 titleFontLabel.Text = "( )"; 51 axisFontLabel.Text = "( )"; 52 49 53 xAxisPrimaryTitleTextBox.Text = string.Empty; 50 54 xAxisPrimaryMinimumAutoRadioButton.Checked = false; … … 77 81 yAxisSecondaryMaximumFixedTextBox.Text = string.Empty; 78 82 } else { 83 titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )"; 84 axisFontLabel.Text = "( " + FormatFont(Content.AxisTitleFont) + " )"; 85 79 86 xAxisPrimaryTitleTextBox.Text = Content.XAxisTitle; 80 87 xAxisPrimaryMinimumAutoRadioButton.Checked = Content.XAxisMinimumAuto; … … 348 355 } 349 356 } 357 358 private void titleFontButton_Click(object sender, System.EventArgs e) { 359 titleFontDialog.Font = Content.TitleFont; 360 titleFontDialog.Color = Content.TitleColor; 361 if (titleFontDialog.ShowDialog() == DialogResult.OK) { 362 Content.TitleFont = titleFontDialog.Font; 363 Content.TitleColor = titleFontDialog.Color; 364 titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )"; 365 } 366 } 367 368 private void axisFontButton_Click(object sender, System.EventArgs e) { 369 axisFontDialog.Font = Content.AxisTitleFont; 370 axisFontDialog.Color = Content.AxisTitleColor; 371 if (axisFontDialog.ShowDialog() == DialogResult.OK) { 372 Content.AxisTitleFont = axisFontDialog.Font; 373 Content.AxisTitleColor = axisFontDialog.Color; 374 axisFontLabel.Text = "( " + FormatFont(Content.AxisTitleFont) + " )"; 375 } 376 } 350 377 #endregion 378 379 private string FormatFont(Font f) { 380 if (f == null) return string.Empty; 381 else return f.Name + ", " + f.SizeInPoints.ToString() + "pt, " + f.Style.ToString(); 382 } 351 383 } 352 384 }
Note: See TracChangeset
for help on using the changeset viewer.