コード例 #1
0
        private void GetBack()
        {
            TSActionsForm tsaform = new TSActionsForm();

            tsaform.Show();
            this.Hide();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string login    = "******";
            string password = "******";

            if (textBox1.Text == login && textBox2.Text == password)
            //MessageBox.Show("Авторизация прошла успешно");
            {
                TSActionsForm tsaform = new TSActionsForm();
                tsaform.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("Неверный логин/пароль");
            }
        }