summaryrefslogtreecommitdiff
path: root/grapher/OptionXY.cs
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/OptionXY.cs')
-rw-r--r--grapher/OptionXY.cs33
1 files changed, 32 insertions, 1 deletions
diff --git a/grapher/OptionXY.cs b/grapher/OptionXY.cs
index c65d1cf..de7fad9 100644
--- a/grapher/OptionXY.cs
+++ b/grapher/OptionXY.cs
@@ -8,12 +8,43 @@ using System.Windows.Forms;
namespace grapher
{
public class OptionXY
- { public OptionXY(FieldXY fields, Label label)
+ {
+ public OptionXY(FieldXY fields, Label label)
{
Fields = fields;
Label = label;
}
+ public OptionXY(
+ TextBox xBox,
+ TextBox yBox,
+ CheckBox lockCheckBox,
+ Form containingForm,
+ double defaultData,
+ Label label)
+ : this(new FieldXY(xBox, yBox, lockCheckBox, containingForm, defaultData), label)
+ {
+ }
+
+ public OptionXY(
+ TextBox xBox,
+ TextBox yBox,
+ CheckBox lockCheckBox,
+ Form containingForm,
+ double defaultData,
+ Label label,
+ string startingName):
+ this(
+ xBox,
+ yBox,
+ lockCheckBox,
+ containingForm,
+ defaultData,
+ label)
+ {
+ SetName(startingName);
+ }
+
public FieldXY Fields { get; }
public Label Label { get; }