Free cookie consent management tool by TermsFeed Policy Generator

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

Display of Y-Axes can be individually switched on and off in the options dialog. (#433)

File:
1 edited

Legend:

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

    r1342 r1343  
    2323
    2424    public IList<int> GetThicknesses() {
    25       return new List<int> {0, 1, 2, 3, 4, 5, 6, 7, 8};
     25      return new List<int>(new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8});
    2626    }
    2727
    2828    public IList<DrawingStyle> GetStyles() {
    29       return new List<DrawingStyle> {DrawingStyle.Solid, DrawingStyle.Dashed};
     29      return new List<DrawingStyle>(new DrawingStyle[] {DrawingStyle.Solid, DrawingStyle.Dashed});
    3030    }
    3131
     
    3939        LineSelectCB.SelectedIndex = 0;
    4040        LineSelectCB_SelectedIndexChanged(this, null);
     41      }
     42
     43      InitTabPageYAxes();
     44    }
     45
     46    private void InitTabPageYAxes() {
     47      for (int i = 0; i < model.Rows.Count; i++) {
     48        IDataRow row = model.Rows[i];
     49
     50        CheckBox chkbox = new CheckBox();
     51        chkbox.Text = row.Label;
     52        chkbox.Checked = row.ShowYAxis;
     53        chkbox.CheckedChanged += delegate { row.ShowYAxis = chkbox.Checked; };
     54       
     55        dataRowsFlowLayout.Controls.Add(chkbox);
    4156      }
    4257    }
Note: See TracChangeset for help on using the changeset viewer.