private void btn_admin_Click(object sender, RoutedEventArgs e) { if (tb_pass.Text == "0000") { App.TypeUser = "******"; Forms.Menu menu = new Forms.Menu(); menu.Show(); Close(); } else { MessageBox.Show("Неверный пароль"); } }
private void btn_enter_Click(object sender, RoutedEventArgs e) { Forms.Menu menu = new Forms.Menu(); menu.Show(); Close(); }