summaryrefslogtreecommitdiff
path: root/grapher/Models/Fields
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Models/Fields')
-rw-r--r--grapher/Models/Fields/FieldXY.cs7
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()