private void alumnos_back(object sender, RoutedEventArgs e) { MainW mw = new MainW(); mw.Show(); this.Close(); }
private void formulario_back(object sender, RoutedEventArgs e) { MainW mw = new MainW(); mw.Show(); this.Close(); }
private void entrar_click(object sender, RoutedEventArgs e) { string user = txtUser.Text; string password = txtPass.Password; if (user == "Macarena" && password == "cacalchen2000") { MainW mw = new MainW(); mw.Show(); this.Close(); } else { MessageBox.Show("¡Por favor introduzca los datos correctos!"); txtUser.Text = ""; txtPass.Password = ""; } }