summaryrefslogtreecommitdiff
path: root/grapher/Models/Charts/AccelCharts.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-01 00:56:07 -0700
committerJacob Palecki <[email protected]>2020-09-01 00:56:07 -0700
commitb5b87e24053c9f52a2edb5b1cb48f8e27e434ce1 (patch)
tree16311322d41596a69cbd2932ae8fe9dafb45401e /grapher/Models/Charts/AccelCharts.cs
parentSet whole or by component with toolstrip item (diff)
downloadrawaccel-b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1.tar.xz
rawaccel-b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1.zip
Show xy charts only when accel applied by component
Diffstat (limited to 'grapher/Models/Charts/AccelCharts.cs')
-rw-r--r--grapher/Models/Charts/AccelCharts.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs
index 1aa3909..0136ced 100644
--- a/grapher/Models/Charts/AccelCharts.cs
+++ b/grapher/Models/Charts/AccelCharts.cs
@@ -24,8 +24,7 @@ namespace grapher
ChartXY sensitivityChart,
ChartXY velocityChart,
ChartXY gainChart,
- ToolStripMenuItem enableVelocityAndGain,
- ICollection<CheckBox> checkBoxesXY)
+ ToolStripMenuItem enableVelocityAndGain)
{
Estimated = new EstimatedPoints();
EstimatedX = new EstimatedPoints();
@@ -37,7 +36,6 @@ namespace grapher
VelocityChart = velocityChart;
GainChart = gainChart;
EnableVelocityAndGain = enableVelocityAndGain;
- CheckBoxesXY = checkBoxesXY;
SensitivityChart.SetPointBinds(Estimated.Sensitivity, EstimatedX.Sensitivity, EstimatedY.Sensitivity);
VelocityChart.SetPointBinds(Estimated.Velocity, EstimatedX.Velocity, EstimatedY.Velocity);
@@ -78,8 +76,6 @@ namespace grapher
private EstimatedPoints EstimatedY { get; }
- private ICollection<CheckBox> CheckBoxesXY { get; }
-
private bool Combined { get; set; }
private int FormBorderHeight { get; }
@@ -119,9 +115,9 @@ namespace grapher
}
}
- public void RefreshXY()
+ public void RefreshXY(bool isWhole)
{
- if (CheckBoxesXY.All(box => box.Checked))
+ if (isWhole)
{
ShowCombined();
}