Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/19 10:07:53 (5 years ago)
Author:
gkronber
Message:

#2947: merged r16527 from trunk to stable (without useless mergeinfo properties)

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.cs

    r15584 r16838  
    4040    protected Dictionary<Series, Series> seriesToRegressionSeriesTable;
    4141    private double xMin, xMax, yMin, yMax;
     42    protected bool showChartOnly = false;
    4243
    4344    public new ScatterPlot Content {
     
    4647    }
    4748
    48     public bool ShowName {
    49       get { return nameTextBox.Visible; }
     49    public bool ShowChartOnly {
     50      get { return showChartOnly; }
    5051      set {
    51         if (nameTextBox.Visible != value) {
    52           foreach (Control c in Controls) {
    53             if (c == chart) continue;
    54             c.Visible = value;
    55           }
    56           chart.Dock = value ? DockStyle.None : DockStyle.Fill;
     52        if (showChartOnly != value) {
     53          showChartOnly = value;
     54          UpdateControlsVisibility();
    5755        }
    5856      }
     
    137135        }
    138136      } else MessageBox.Show("Nothing to configure.");
     137    }
     138
     139    protected void UpdateControlsVisibility() {
     140      if (InvokeRequired)
     141        Invoke(new Action(UpdateControlsVisibility));
     142      else {
     143        foreach (Control c in Controls) {
     144          if (c == chart) continue;
     145          c.Visible = !showChartOnly;
     146        }
     147        chart.Dock = showChartOnly ? DockStyle.Fill : DockStyle.None;
     148      }
    139149    }
    140150
Note: See TracChangeset for help on using the changeset viewer.