diff options
| author | Jacob Palecki <[email protected]> | 2020-07-30 02:00:20 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-30 02:00:20 -0700 |
| commit | f315e8160e984df93be6667929db34749aa25cfa (patch) | |
| tree | 19684a4f515fc6185e750d7cca3424fa7d96937b /grapher/Option.cs | |
| parent | Fully use acceloptions (diff) | |
| download | rawaccel-f315e8160e984df93be6667929db34749aa25cfa.tar.xz rawaccel-f315e8160e984df93be6667929db34749aa25cfa.zip | |
Use class heirarchy for layout types
Diffstat (limited to 'grapher/Option.cs')
| -rw-r--r-- | grapher/Option.cs | 9 |
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(); + } } } |