aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
diff options
context:
space:
mode:
authorFloppyDiskDrive <[email protected]>2017-09-27 20:34:58 -0500
committerFloppyDiskDrive <[email protected]>2017-09-27 20:34:58 -0500
commit753a880c0d5eb6fa6f466ef5e36713203409e13f (patch)
treef52ec9f37c36a33d721b2947348200d13728cf1b /ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
parent23791cf63b61a2a922e80e5077ec5a3ad0ce7c53 (diff)
downloadshiftos-rewind-753a880c0d5eb6fa6f466ef5e36713203409e13f.tar.gz
shiftos-rewind-753a880c0d5eb6fa6f466ef5e36713203409e13f.tar.bz2
shiftos-rewind-753a880c0d5eb6fa6f466ef5e36713203409e13f.zip
Revert "Added a buggy dynamically changing infobox (this will most likely not work)"
This reverts commit 23791cf63b61a2a922e80e5077ec5a3ad0ce7c53.
Diffstat (limited to 'ShiftOS.Engine/WindowManager/InfoboxTemplate.cs')
-rw-r--r--ShiftOS.Engine/WindowManager/InfoboxTemplate.cs20
1 files changed, 2 insertions, 18 deletions
diff --git a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
index d8ad071..a5be129 100644
--- a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
+++ b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
@@ -11,12 +11,6 @@ namespace ShiftOS.Engine.WindowManager
Stream _str;
private int _buttonChoice;
private int _buttonSelected;
- private int _leftDistance;
- private int _rightDistance;
- private int _textWidth;
- private int _textHeight;
- private int _topDistance;
- private int _bottomDistance;
public InfoboxTemplate(ButtonType type)
{
InitializeComponent();
@@ -90,18 +84,8 @@ namespace ShiftOS.Engine.WindowManager
private void changeSize_Tick(object sender, EventArgs e)
{
- ChangeSize();
- }
- private void ChangeSize()
- {
- _textHeight = label1.Height;
- _textWidth = label1.Width;
- _topDistance = 55;
- _bottomDistance = 121;
- _rightDistance = 101;
- _leftDistance = 55;
- this.Height = _textHeight + _topDistance + _bottomDistance;
- this.Width = _textWidth + _leftDistance + _rightDistance;
+ this.Height += label1.Height;
+ this.Width += label1.Width;
}
}
}