// Tile debug forms private void ToolStripMenuItem_File_Debug_Tile_Click(object sender, EventArgs e) { int iX = this.Left + this.Width; int iY = this.Top; if (iX > Screen.PrimaryScreen.Bounds.Width) { iX = 0; } if (iY > Screen.PrimaryScreen.Bounds.Height) { iY = 0; } foreach (RSMPGS_Debug DebugForm in RSMPGS.DebugForms) { DebugForm.WindowState = FormWindowState.Normal; DebugForm.Left = iX; DebugForm.Top = iY; DebugForm.Width = 500; DebugForm.Height = 500; DebugForm.BringToFront(); iX += 50; iY += 50; } }
// // View all forms // private void RSMPGS_Main_Shown(object sender, EventArgs e) { if (bLoadFailed) { return; } foreach (RSMPGS_Debug DebugForm in RSMPGS.DebugForms) { DebugForm.Show(); DebugForm.BringToFront(); } }