summaryrefslogtreecommitdiff
path: root/grapher/Option.cs
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Option.cs')
-rw-r--r--grapher/Option.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/grapher/Option.cs b/grapher/Option.cs
index a2a4f89..8e3ecdf 100644
--- a/grapher/Option.cs
+++ b/grapher/Option.cs
@@ -15,6 +15,17 @@ namespace grapher
Label = label;
}
+ public Option(TextBox box, Form containingForm, double defaultData, Label label)
+ : this(new Field(box, containingForm, defaultData), label)
+ {
+ }
+
+ public Option(TextBox box, Form containingForm, double defaultData, Label label, string startingName)
+ : this(box, containingForm, defaultData, label)
+ {
+ SetName(startingName);
+ }
+
public Field Field { get; }
public Label Label { get; }