diff options
| author | Jacob Palecki <[email protected]> | 2020-07-30 01:13:24 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-30 01:13:24 -0700 |
| commit | 3cbec32cfa91bad661bc126b517faf78458a27a6 (patch) | |
| tree | bf637fbab252befdb1302601e8d759e23c66e82b /grapher/Option.cs | |
| parent | Fix small bugs, add AccelOptions class (diff) | |
| download | rawaccel-3cbec32cfa91bad661bc126b517faf78458a27a6.tar.xz rawaccel-3cbec32cfa91bad661bc126b517faf78458a27a6.zip | |
Fully use acceloptions
Diffstat (limited to 'grapher/Option.cs')
| -rw-r--r-- | grapher/Option.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/grapher/Option.cs b/grapher/Option.cs new file mode 100644 index 0000000..6c7bcda --- /dev/null +++ b/grapher/Option.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace grapher +{ + public class Option + { + public Option(TextBox box, Label label) + { + Box = box; + Label = label; + } + + public TextBox Box { get; } + + public Label Label { get; } + + public void SetName(string name) + { + Label.Text = name; + } + + public void Hide() + { + Box.Hide(); + Label.Hide(); + } + + public void Show() + { + Box.Show(); + Label.Show(); + } + } +} |