diff options
| author | jtsshieh <[email protected]> | 2017-08-30 06:47:04 -0400 |
|---|---|---|
| committer | jtsshieh <[email protected]> | 2017-08-30 06:47:04 -0400 |
| commit | 4bc215e200214834e844443f81114280e9156f09 (patch) | |
| tree | e9ac99508869680b2712219596a44f406ae2d860 /Histacom2.Engine/Template | |
| parent | 880bc37d751d1ec96620396d4db44178f558df77 (diff) | |
| download | histacom2-4bc215e200214834e844443f81114280e9156f09.tar.gz histacom2-4bc215e200214834e844443f81114280e9156f09.tar.bz2 histacom2-4bc215e200214834e844443f81114280e9156f09.zip | |
Revert "DId the maximize things"
This reverts commit 880bc37d751d1ec96620396d4db44178f558df77.
Diffstat (limited to 'Histacom2.Engine/Template')
| -rw-r--r-- | Histacom2.Engine/Template/WinClassic.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Histacom2.Engine/Template/WinClassic.cs b/Histacom2.Engine/Template/WinClassic.cs index 5b72775..23ea562 100644 --- a/Histacom2.Engine/Template/WinClassic.cs +++ b/Histacom2.Engine/Template/WinClassic.cs @@ -206,11 +206,9 @@ namespace Histacom2.Engine.Template } public bool max = false; - public Size prevSize; - public Point prevPoint; + private void maximizebutton_Click(object sender, EventArgs e) { - if (max == false) { this.right.Hide(); @@ -222,10 +220,7 @@ namespace Histacom2.Engine.Template this.topleftcorner.Hide(); this.toprightcorner.Hide(); this.Dock = DockStyle.Fill; - prevSize = this.Size; - prevPoint = this.Location; - this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height - 28); - this.Location = new Point(0, 0); + this.WindowState = FormWindowState.Maximized; max = true; maximizebutton.Image = Engine.Properties.Resources.WinClassicRestore; } @@ -240,8 +235,7 @@ namespace Histacom2.Engine.Template this.topleftcorner.Show(); this.toprightcorner.Show(); this.Dock = DockStyle.None; - this.Size = prevSize; - this.Location = prevPoint; + this.WindowState = FormWindowState.Normal; max = false; maximizebutton.Image = Engine.Properties.Resources.WinClassicMax; } |
