private void constate(bool value) { Action action = () => { switch (value) { case (true): tsslCon.Visible = true; tsslCon.Text = Registry_Class.DS + " - " + Registry_Class.IC; break; case (false): ConectionForm conection = new ConectionForm(); tsslCon.Visible = true; tsslCon.Text = "Подключение отсутвует!"; conection.Show(this); break; } }; Invoke(action); }
private void конфигурацияПодключенияToolStripMenuItem_Click(object sender, EventArgs e) { ConectionForm conectionForm = new ConectionForm(); conectionForm.Show(); }