private void SigOutToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); SignInForm signInForm = new SignInForm(); signInForm.Show(); }
private void constate(bool value) { Action action = () => { switch (value) { case (true): SignInForm sign = new SignInForm(); Close(); sign.Show(); break; case (false): ConectionForm conection = new ConectionForm(); conection.Show(); timer1.Enabled = false; this.Hide(); break; } }; Invoke(action); }