- Timestamp:
- 03/13/09 18:21:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.cs
r1337 r1341 6 6 public partial class OptionsDialog : Form { 7 7 private readonly IChartDataRowsModel model; 8 private readonly View PropertiesModel propertiesModel;8 private readonly ViewSettings viewSettings; 9 9 10 public OptionsDialog(IChartDataRowsModel model , ViewPropertiesModel propertiesModel) {10 public OptionsDialog(IChartDataRowsModel model) { 11 11 InitializeComponent(); 12 12 13 13 this.model = model; 14 this.propertiesModel = propertiesModel;14 viewSettings = model.ViewSettings; 15 15 } 16 16 … … 75 75 76 76 private void btnChangeTitleFont_Click(object sender, EventArgs e) { 77 fdFont.Font = propertiesModel.TitleFont;78 fdFont.Color = propertiesModel.TitleColor;77 fdFont.Font = viewSettings.TitleFont; 78 fdFont.Color = viewSettings.TitleColor; 79 79 80 80 DialogResult dr = fdFont.ShowDialog(); 81 81 82 82 if(dr == DialogResult.OK) { 83 propertiesModel.TitleFont = fdFont.Font;84 propertiesModel.TitleColor = fdFont.Color;83 viewSettings.TitleFont = fdFont.Font; 84 viewSettings.TitleColor = fdFont.Color; 85 85 86 propertiesModel.UpdateView();86 viewSettings.UpdateView(); 87 87 } 88 88 } 89 89 90 90 private void btnChangeLegendFont_Click(object sender, EventArgs e) { 91 fdFont.Font = propertiesModel.LegendFont;92 fdFont.Color = propertiesModel.LegendColor;91 fdFont.Font = viewSettings.LegendFont; 92 fdFont.Color = viewSettings.LegendColor; 93 93 94 94 DialogResult dr = fdFont.ShowDialog(); 95 95 96 96 if (dr == DialogResult.OK) { 97 propertiesModel.LegendFont = fdFont.Font;98 propertiesModel.LegendColor = fdFont.Color;97 viewSettings.LegendFont = fdFont.Font; 98 viewSettings.LegendColor = fdFont.Color; 99 99 100 propertiesModel.UpdateView();100 viewSettings.UpdateView(); 101 101 } 102 102 } 103 103 104 104 private void btnChangeXAxisFont_Click(object sender, EventArgs e) { 105 fdFont.Font = propertiesModel.XAxisFont;106 fdFont.Color = propertiesModel.XAxisColor;105 fdFont.Font = viewSettings.XAxisFont; 106 fdFont.Color = viewSettings.XAxisColor; 107 107 108 108 DialogResult dr = fdFont.ShowDialog(); 109 109 110 110 if (dr == DialogResult.OK) { 111 propertiesModel.XAxisFont = fdFont.Font;112 propertiesModel.XAxisColor = fdFont.Color;111 viewSettings.XAxisFont = fdFont.Font; 112 viewSettings.XAxisColor = fdFont.Color; 113 113 114 propertiesModel.UpdateView();114 viewSettings.UpdateView(); 115 115 } 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.