//Показать форму индикатора private void OpenIndicatorForm() { if (_showIndicator) { Application.EnableVisualStyles(); _form = new IndicatorForm(); var screen = Screen.PrimaryScreen; _form.Location = new Point(screen.WorkingArea.Width - _form.Width - 1, screen.WorkingArea.Height - _form.Height - 2); _form.Show(); _form.Text = _commCode; _form.PeriodBegin.Text = _timeBegin.ToString(); _form.PeriodEnd.Text = _timeEnd.ToString(); _form.CalcName.Text = ""; _form.Refresh(); Thread.Sleep(100); } }
//Показать форму индикатора private void ShowIndicatorForm() { if (ShowIndicator) { CalcMode = "Запущен"; Application.EnableVisualStyles(); Form = new IndicatorForm { ThreadApp = this }; var screen = Screen.PrimaryScreen; Form.Location = new Point(screen.WorkingArea.Width - Form.Width - 1, screen.WorkingArea.Height - Form.Height - 2); Form.Show(); Form.Text = "Поток " + Id + " (" + ProjectsString + ")"; Form.CalcName.Text = CalcName; Form.Refresh(); Thread.Sleep(100); } }