private void tmrMain_Tick(object sender, EventArgs e) { _OpenForms.Clear(); _TimerStarted = DateTime.Now; foreach (var screen in Screen.AllScreens) { var frm = new OverlayForm(); _OpenForms.Add(frm); frm.FormClosed += frm_FormClosed; frm.Left = screen.Bounds.Left; frm.Top = screen.Bounds.Top; frm.StartPosition = FormStartPosition.Manual; frm.Show(); } }
private void tmrMain_Tick(object sender, EventArgs e) { _OpenForms.Clear(); tmrMain.Stop(); tmrUpdateStatus.Stop(); foreach (var screen in Screen.AllScreens) { var frm = new OverlayForm(_settings); _OpenForms.Add(frm); frm.FormClosed += frm_FormClosed; frm.Left = screen.Bounds.Left; frm.Top = screen.Bounds.Top; frm.StartPosition = FormStartPosition.Manual; frm.Show(); } }