diff options
| author | Jacob Palecki <[email protected]> | 2020-07-30 20:15:12 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-30 20:15:12 -0700 |
| commit | 49bd00c71b223d12f1d85d5c1bae635d450403fd (patch) | |
| tree | b8984dcaa28c13c6b5f065cd0e540c1faca55c17 /grapher/Option.cs | |
| parent | Use class heirarchy for layout types (diff) | |
| download | rawaccel-49bd00c71b223d12f1d85d5c1bae635d450403fd.tar.xz rawaccel-49bd00c71b223d12f1d85d5c1bae635d450403fd.zip | |
Use options instead of fields
Diffstat (limited to 'grapher/Option.cs')
| -rw-r--r-- | grapher/Option.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/grapher/Option.cs b/grapher/Option.cs index 17e624b..a2a4f89 100644 --- a/grapher/Option.cs +++ b/grapher/Option.cs @@ -9,31 +9,31 @@ namespace grapher { public class Option { - public Option(TextBox box, Label label) + public Option(Field field, Label label) { - Box = box; + Field = field; Label = label; } - public TextBox Box { get; } + public Field Field { get; } public Label Label { get; } public void SetName(string name) { Label.Text = name; - Label.Left = Convert.ToInt32((Box.Left / 2.0) - (Label.Width / 2.0)); + Label.Left = Convert.ToInt32((Field.Box.Left / 2.0) - (Label.Width / 2.0)); } public void Hide() { - Box.Hide(); + Field.Box.Hide(); Label.Hide(); } public void Show() { - Box.Show(); + Field.Box.Show(); Label.Show(); } @@ -41,7 +41,7 @@ namespace grapher { SetName(name); - Box.Show(); + Field.Box.Show(); Label.Show(); } } |