private void ButInAdmin_Click(object sender, RoutedEventArgs e) { string s = "0000"; if (PasswordTB.Text == s) { Forms.MenuForm form = new Forms.MenuForm(); form.Show(); Close(); } else { MessageBox.Show("Неверный пароль"); } /*DataBase.EntitiesWpfDataBase entities = new DataBase.EntitiesWpfDataBase(); * string s = entities.Service.FirstOrDefault().Title; * MessageBox.Show(s);*/ }
private void ButBack_Click(object sender, RoutedEventArgs e) { Forms.MenuForm menu = new MenuForm(); menu.Show(); Close(); }