Пример #1
0
        private void SigOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            SignInForm signInForm = new SignInForm();

            signInForm.Show();
        }
Пример #2
0
        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);
        }