private void btnFormDGVShowDialog_Click(object sender, EventArgs e) { for (int i = 0; i < NumWin; i++) { using (FormDGV f2 = new FormDGV(_dt)) { f2.ShowDialog(); } } }
private void btnFormDGVShowMenuStripShow_Click(object sender, EventArgs e) { for (int i = 0; i < NumWin; i++) { FormDGV f1 = new FormDGV(_dt, showMenuStrip: true); f1.Show(); if (!SpeedTest) { while (!f1.IsDisposed) { Application.DoEvents(); System.Threading.Thread.Sleep(100); } } } }