diff options
Diffstat (limited to 'grapher/Models/Charts/AccelCharts.cs')
| -rw-r--r-- | grapher/Models/Charts/AccelCharts.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs index 9952016..4ed44c7 100644 --- a/grapher/Models/Charts/AccelCharts.cs +++ b/grapher/Models/Charts/AccelCharts.cs @@ -1,4 +1,5 @@ -using System; +using grapher.Models.Calculations; +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; @@ -55,8 +56,17 @@ namespace grapher public ToolStripMenuItem EnableVelocityAndGain { get; } + private bool Combined { get; set; } + private int FormBorderHeight { get; } + public void Bind(AccelData data) + { + SensitivityChart.Bind(data.OrderedAccelPoints); + VelocityChart.Bind(data.OrderedVelocityPoints); + GainChart.Bind(data.OrderedGainPoints); + } + private void OnEnableClick(object sender, EventArgs e) { EnableVelocityAndGain.Checked = !EnableVelocityAndGain.Checked; @@ -99,6 +109,7 @@ namespace grapher VelocityChart.SetSeparate(); GainChart.SetSeparate(); UpdateFormWidth(); + Combined = false; } private void ShowCombined() @@ -107,6 +118,7 @@ namespace grapher VelocityChart.SetCombined(); GainChart.SetCombined(); UpdateFormWidth(); + Combined = true; } private void UpdateFormWidth() |