From 3cbec32cfa91bad661bc126b517faf78458a27a6 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Thu, 30 Jul 2020 01:13:24 -0700 Subject: Fully use acceloptions --- grapher/Option.cs | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 grapher/Option.cs (limited to 'grapher/Option.cs') 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(); + } + } +} -- cgit v1.2.3