Skip to content

Commit 140ffa2

Browse files
committed
PoisonTaskWindow Fix
1 parent ff0f82d commit 140ffa2

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/ReaLTaiizor/Controls/Window/PoisonTaskWindow.cs

+12-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ public bool StartLocation
106106
set => startLocation = value;
107107
}
108108

109+
private bool customSize = false;
110+
111+
public bool CustomSize
112+
{
113+
get => customSize;
114+
set => customSize = value;
115+
}
116+
109117
private readonly PoisonPanel controlContainer;
110118

111119
public PoisonTaskWindow()
@@ -142,7 +150,10 @@ protected override void OnActivated(EventArgs e)
142150

143151
TopMost = true;
144152

145-
Size = new(400, 200);
153+
if (!CustomSize)
154+
{
155+
Size = new(400, 200);
156+
}
146157

147158
if (!StartLocation)
148159
{

src/ReaLTaiizor/ReaLTaiizor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// Creator: Taiizor
1414
// Website: www.Vegalya.com
1515
// Created: 15.May.2019
16-
// Changed: 11.Jul.2022
16+
// Changed: 12.Jul.2022
1717
// Version: 3.7.8.7
1818
//
1919
// |---------DO-NOT-REMOVE---------|

src/ReaLTaiizor_CR/Poison.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ private void poisonButton2_Click(object sender, System.EventArgs e)
2929
MaximizeBox = false,
3030
MinimizeBox = false,
3131

32-
StartLocation = true,
32+
StartLocation = false,
3333
StartPosition = FormStartPosition.CenterScreen,
3434

3535
Theme = ThemeStyle.Dark,
36-
Style = ColorStyle.Magenta
36+
Style = ColorStyle.Magenta,
37+
38+
CustomSize = true,
39+
Size = new Size(300, 75)
3740
};
3841

3942
PTW.Show();
40-
PTW.Size = new Size(300, 75);
4143
}
4244

4345
public enum LogType

0 commit comments

Comments
 (0)