aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-26 17:58:22 -0600
committerGitHub <[email protected]>2017-03-26 17:58:22 -0600
commitf3ded1683916137c4d625565266f915492b2d4ad (patch)
tree16a37b1ce68466a51f56f354b98c8b95ce931a59 /TimeHACK.Engine/WindowManager.cs
parent3d5745cbfcf6019dc9f864b59dd05d60bea770b3 (diff)
parenta357d77aa7a2a35f414daa0a7737003bf2660477 (diff)
downloadhistacom2-f3ded1683916137c4d625565266f915492b2d4ad.tar.gz
histacom2-f3ded1683916137c4d625565266f915492b2d4ad.tar.bz2
histacom2-f3ded1683916137c4d625565266f915492b2d4ad.zip
Merge pull request #7 from jayxkanz666/master
added downloader and installer - There ya go buddy! :)
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 8047a8c..52a74d1 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -1,12 +1,13 @@
using System;
using TimeHACK.Engine.Template;
using System.Windows.Forms;
+using System.Drawing;
namespace TimeHACK.Engine
{
public class WindowManager
{
- public void StartWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
+ public void startWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
{
// Setup Window
WinClassic app = new WinClassic();
@@ -23,16 +24,18 @@ namespace TimeHACK.Engine
}
app.programIcon.Image = icon.Image;
- // Check if Max button is enabled
+ // Check if Max button is enabled and set proper X for Min button
if (MaxButton == false)
{
app.maximizebutton.Visible = false;
+ app.minimizebutton.Location = new Point(app.closebutton.Location.X - 16, app.minimizebutton.Location.Y);
}
// Check if Min button is enabled
if (MinButton == false)
{
app.minimizebutton.Visible = false;
+ app.minimizebutton.Location = new Point(app.minimizebutton.Location.X, app.minimizebutton.Location.Y);
}
// Show the app