summaryrefslogtreecommitdiff
path: root/grapher/Option.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-07-30 01:13:24 -0700
committerJacob Palecki <[email protected]>2020-07-30 01:13:24 -0700
commit3cbec32cfa91bad661bc126b517faf78458a27a6 (patch)
treebf637fbab252befdb1302601e8d759e23c66e82b /grapher/Option.cs
parentFix small bugs, add AccelOptions class (diff)
downloadrawaccel-3cbec32cfa91bad661bc126b517faf78458a27a6.tar.xz
rawaccel-3cbec32cfa91bad661bc126b517faf78458a27a6.zip
Fully use acceloptions
Diffstat (limited to 'grapher/Option.cs')
-rw-r--r--grapher/Option.cs39
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();
+ }
+ }
+}