private void admin_Click(object sender, RoutedEventArgs e) { if (tbpass.Password == Password) { Forms.adminservis adminservis = new Forms.adminservis(); adminservis.Show(); this.Close(); } else { MessageBox.Show("Неверный пароль админа"); } }
private void BTHome_Click(object sender, RoutedEventArgs e) { Forms.adminservis adminservis = new adminservis(); adminservis.Show(); this.Close(); }