diff options
| author | Jacob Palecki <[email protected]> | 2020-09-01 00:56:07 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-01 00:56:07 -0700 |
| commit | b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1 (patch) | |
| tree | 16311322d41596a69cbd2932ae8fe9dafb45401e /grapher/Models/Fields/FieldXY.cs | |
| parent | Set whole or by component with toolstrip item (diff) | |
| download | rawaccel-b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1.tar.xz rawaccel-b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1.zip | |
Show xy charts only when accel applied by component
Diffstat (limited to 'grapher/Models/Fields/FieldXY.cs')
| -rw-r--r-- | grapher/Models/Fields/FieldXY.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/grapher/Models/Fields/FieldXY.cs b/grapher/Models/Fields/FieldXY.cs index 609af9d..87e0b9c 100644 --- a/grapher/Models/Fields/FieldXY.cs +++ b/grapher/Models/Fields/FieldXY.cs @@ -13,14 +13,13 @@ namespace grapher public const string ShortenedFormatString = "0.###"; - public FieldXY(TextBox xBox, TextBox yBox, CheckBox lockCheckBox, Form containingForm, double defaultData, AccelCharts accelCharts) + public FieldXY(TextBox xBox, TextBox yBox, CheckBox lockCheckBox, Form containingForm, double defaultData) { XField = new Field(xBox, containingForm, defaultData); YField = new Field(yBox, containingForm, defaultData); YField.FormatString = ShortenedFormatString; LockCheckBox = lockCheckBox; LockCheckBox.CheckedChanged += new System.EventHandler(CheckChanged); - AccelCharts = accelCharts; XField.Box.Width = (YField.Box.Left + YField.Box.Width - XField.Box.Left - DefaultSeparation) / 2; YField.Box.Width = XField.Box.Width; @@ -59,8 +58,6 @@ namespace grapher public Field YField { get; } - private AccelCharts AccelCharts { get; } - private bool Combined { get; set; } private int DefaultWidthX { get; } @@ -79,8 +76,6 @@ namespace grapher { SetSeparate(); } - - AccelCharts.RefreshXY(); } public void SetCombined() |