Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/03/09 01:42:55 (15 years ago)
Author:
mstoeger
Message:

added many new persisted properties.
removed useless comments.
added XmlSupport class since the code for setting xml attributes is always the same.
#639

File:
1 edited

Legend:

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

    r1972 r1993  
    1515    private bool oldShowXAxisGrid;
    1616    private Color oldXAxisGridColor;
     17    private Font oldXAxisFont;
     18    private Color oldXAxisColor;
    1719    private Dictionary<CheckBox, bool> yAxisClipChangeableBoxes;
    1820
     
    6971      model.XAxis.ShowGrid = oldShowXAxisGrid;
    7072      chkShowXAxisGrid.Checked = oldShowXAxisGrid;
     73
     74      model.XAxis.Color = oldXAxisColor;
     75      model.XAxis.Font = oldXAxisFont;
    7176     
    7277      model.XAxis.GridColor = oldXAxisGridColor;
     
    9398      viewSettings.TitleColor = oldViewSettings.TitleColor;
    9499      viewSettings.TitleFont = oldViewSettings.TitleFont;
    95       viewSettings.XAxisColor = oldViewSettings.LegendColor;
    96       viewSettings.XAxisFont = oldViewSettings.XAxisFont;
    97100      viewSettings.UpdateView();
    98101      cbLegendPosition.SelectedItem = viewSettings.LegendPosition;
     
    137140
    138141    private void btnChangeXAxisFont_Click(object sender, EventArgs e) {
    139       fdFont.Font = viewSettings.XAxisFont;
    140       fdFont.Color = viewSettings.XAxisColor;
     142      fdFont.Font = model.XAxis.Font;
     143      fdFont.Color = model.XAxis.Color;
    141144
    142145      DialogResult dr = fdFont.ShowDialog();
    143146
    144147      if (dr == DialogResult.OK) {
    145         viewSettings.XAxisFont = fdFont.Font;
    146         viewSettings.XAxisColor = fdFont.Color;
     148        model.XAxis.Font = fdFont.Font;
     149        model.XAxis.Color = fdFont.Color;
    147150
    148151        viewSettings.UpdateView();
     
    156159      oldXAxisGridColor = model.XAxis.GridColor;
    157160      xAxisGridColorSelection.Color = model.XAxis.GridColor;
     161
     162      oldXAxisFont = model.XAxis.Font;
     163      oldXAxisColor = model.XAxis.Color;
    158164
    159165      InitTabPageLines();
Note: See TracChangeset for help on using the changeset viewer.