summaryrefslogtreecommitdiff
path: root/grapher/Option.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-07-30 20:15:12 -0700
committerJacob Palecki <[email protected]>2020-07-30 20:15:12 -0700
commit49bd00c71b223d12f1d85d5c1bae635d450403fd (patch)
treeb8984dcaa28c13c6b5f065cd0e540c1faca55c17 /grapher/Option.cs
parentUse class heirarchy for layout types (diff)
downloadrawaccel-49bd00c71b223d12f1d85d5c1bae635d450403fd.tar.xz
rawaccel-49bd00c71b223d12f1d85d5c1bae635d450403fd.zip
Use options instead of fields
Diffstat (limited to 'grapher/Option.cs')
-rw-r--r--grapher/Option.cs14
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();
}
}