private void StartingPoint(GoblinBatScreen gs, Progress pro) { splitContainer.Panel1.Controls.Add(gs); splitContainer.Panel2.Controls.Add(pro); Width = gs.Width + 4; Height = gs.Height + pro.Height + 1; pro.Width = gs.Width; splitContainer.SplitterDistance = gs.Height; CenterToScreen(); gs.SetProgress(pro); ShowDialog(); }
private void StartingPoint(DialogResult result, GoblinBatScreen gs, Progress pro) { splitContainer.Panel1.Controls.Add(gs); splitContainer.Panel2.Controls.Add(pro); Width = gs.Width + 4; Height = gs.Height + pro.Height + 1; SuspendLayout(); pro.Width = gs.Width; splitContainer.SplitterDistance = gs.Height; CenterToScreen(); gs.SetProgress(pro); SetControlsChangeFont(result, Controls, new Font("Consolas", Font.Size + 1.75F, FontStyle.Bold)); ResumeLayout(); ShowDialog(); }