Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/13/09 18:21:26 (15 years ago)
Author:
bspisic
Message:

#520 Renamed ViewPropertiesModel to ViewSettings and moved from LineChart to ChartDataRowsModel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.cs

    r1337 r1341  
    66  public partial class OptionsDialog : Form {
    77    private readonly IChartDataRowsModel model;
    8     private readonly ViewPropertiesModel propertiesModel;
     8    private readonly ViewSettings viewSettings;
    99
    10     public OptionsDialog(IChartDataRowsModel model, ViewPropertiesModel propertiesModel) {
     10    public OptionsDialog(IChartDataRowsModel model) {
    1111      InitializeComponent();
    1212
    1313      this.model = model;
    14       this.propertiesModel = propertiesModel;
     14      viewSettings = model.ViewSettings;
    1515    }
    1616
     
    7575
    7676    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;
    7979
    8080      DialogResult dr = fdFont.ShowDialog();
    8181
    8282      if(dr == DialogResult.OK) {
    83         propertiesModel.TitleFont = fdFont.Font;
    84         propertiesModel.TitleColor = fdFont.Color;
     83        viewSettings.TitleFont = fdFont.Font;
     84        viewSettings.TitleColor = fdFont.Color;
    8585
    86         propertiesModel.UpdateView();
     86        viewSettings.UpdateView();
    8787      }
    8888    }
    8989
    9090    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;
    9393
    9494      DialogResult dr = fdFont.ShowDialog();
    9595
    9696      if (dr == DialogResult.OK) {
    97         propertiesModel.LegendFont = fdFont.Font;
    98         propertiesModel.LegendColor = fdFont.Color;
     97        viewSettings.LegendFont = fdFont.Font;
     98        viewSettings.LegendColor = fdFont.Color;
    9999
    100         propertiesModel.UpdateView();
     100        viewSettings.UpdateView();
    101101      }
    102102    }
    103103
    104104    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;
    107107
    108108      DialogResult dr = fdFont.ShowDialog();
    109109
    110110      if (dr == DialogResult.OK) {
    111         propertiesModel.XAxisFont = fdFont.Font;
    112         propertiesModel.XAxisColor = fdFont.Color;
     111        viewSettings.XAxisFont = fdFont.Font;
     112        viewSettings.XAxisColor = fdFont.Color;
    113113
    114         propertiesModel.UpdateView();
     114        viewSettings.UpdateView();
    115115      }
    116116    }
Note: See TracChangeset for help on using the changeset viewer.