aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Engine/WindowManager/InfoboxTemplate.cs')
-rw-r--r--ShiftOS.Engine/WindowManager/InfoboxTemplate.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
index f261ace..c1921a6 100644
--- a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
+++ b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
@@ -20,12 +20,13 @@ namespace ShiftOS.Engine.WindowManager
public InfoboxTemplate(buttonType type)
{
InitializeComponent();
+
switch (type)
{
case buttonType.OK:
btnOpt1.Text = "OK";
btnOpt2.Hide();
- btnOpt1.Location = new Point(122, 134);
+ btnOpt1.Location = new Point(109, 134);
buttonChoice = 1;
break;
case buttonType.OKCancel:
@@ -86,5 +87,11 @@ namespace ShiftOS.Engine.WindowManager
{
Play();
}
+
+ private void changeSize_Tick(object sender, EventArgs e)
+ {
+ this.Height += label1.Height;
+ this.Width += label1.Width;
+ }
}
}