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