diff options
| author | JayXKanz666 <[email protected]> | 2017-03-27 01:56:21 +0200 |
|---|---|---|
| committer | JayXKanz666 <[email protected]> | 2017-03-27 01:56:21 +0200 |
| commit | a357d77aa7a2a35f414daa0a7737003bf2660477 (patch) | |
| tree | 16a37b1ce68466a51f56f354b98c8b95ce931a59 /TimeHACK.Engine/WindowManager.cs | |
| parent | 3d5745cbfcf6019dc9f864b59dd05d60bea770b3 (diff) | |
| download | histacom2-a357d77aa7a2a35f414daa0a7737003bf2660477.tar.gz histacom2-a357d77aa7a2a35f414daa0a7737003bf2660477.tar.bz2 histacom2-a357d77aa7a2a35f414daa0a7737003bf2660477.zip | |
added downloader and installer
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
| -rw-r--r-- | TimeHACK.Engine/WindowManager.cs | 7 |
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 |
