/// <summary> /// Form On Resize /// </summary> protected override void OnResize(EventArgs e) { base.OnResize(e); var buttonHeight = (int)(Data.VerticalDLU * 15.5); var buttonWidth = (int)(Data.HorizontalDLU * 60); var btnVertSpace = (int)(Data.VerticalDLU * 5.5); var btnHrzSpace = (int)(Data.HorizontalDLU * 3); int border = btnHrzSpace; BtnOk.Size = new Size(buttonWidth, buttonHeight); BtnOk.Location = new Point(ClientSize.Width - BtnOk.Width - border, ClientSize.Height - BtnOk.Height - btnVertSpace); PnlBase.Size = new Size(ClientSize.Width - 2 * border, BtnOk.Top - border - btnVertSpace); PnlBase.Location = new Point(border, border); PictureBox1.Location = new Point(10, 3); PictureBox1.Size = new Size(48, 48); Label1.Location = new Point(63, 10); Label2.Location = new Point(66, 45); Label3.Location = new Point(66, 77); Label4.Location = new Point(67, 160); Label5.Location = new Point(67, 180); Label6.Location = new Point(67, 200); LlWebsite.Location = new Point(Label5.Right + 5, Label4.Top); LlForum.Location = new Point(Label5.Right + 5, Label5.Top); LlEmail.Location = new Point(Label5.Right + 5, Label6.Top); LlCredits.Location = new Point((PnlBase.Width - LlCredits.Width) / 2, 230); PnlBase.Invalidate(); }
static void Prefix(PnlBase __instance) { LogF($"{__instance} OnShow"); }