private void GetBack() { TSActionsForm tsaform = new TSActionsForm(); tsaform.Show(); this.Hide(); }
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("Неверный логин/пароль"); } }