summaryrefslogtreecommitdiff
path: root/grapher/Option.cs
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Option.cs')
-rw-r--r--grapher/Option.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/grapher/Option.cs b/grapher/Option.cs
index 6c7bcda..17e624b 100644
--- a/grapher/Option.cs
+++ b/grapher/Option.cs
@@ -22,6 +22,7 @@ namespace grapher
public void SetName(string name)
{
Label.Text = name;
+ Label.Left = Convert.ToInt32((Box.Left / 2.0) - (Label.Width / 2.0));
}
public void Hide()
@@ -35,5 +36,13 @@ namespace grapher
Box.Show();
Label.Show();
}
+
+ public void Show(string name)
+ {
+ SetName(name);
+
+ Box.Show();
+ Label.Show();
+ }
}
}