diff options
| author | Jacob Palecki <[email protected]> | 2020-07-31 10:46:23 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-31 10:46:23 -0700 |
| commit | 498e5c1a2fabed3ba5f1c00768d7050c5738e76e (patch) | |
| tree | b1a2aedce76abedf7585689cbf636f8e92d0583d /grapher/Option.cs | |
| parent | Use options instead of fields (diff) | |
| download | rawaccel-498e5c1a2fabed3ba5f1c00768d7050c5738e76e.tar.xz rawaccel-498e5c1a2fabed3ba5f1c00768d7050c5738e76e.zip | |
Small refactoring, use new struct to store magnitudes
Diffstat (limited to 'grapher/Option.cs')
| -rw-r--r-- | grapher/Option.cs | 11 |
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; } |