private void Hyperlink_Click(object sender, RoutedEventArgs e) { if (txtUsuario.Text == "") { MessageBox.Show("Debe proporcionar un Nombre de Usuario en el login", "SwissNet", MessageBoxButton.OK, MessageBoxImage.Information); txtUsuario.Focus(); } else { MUsuario Metodo = new MUsuario(); var res = Metodo.Seguridad(txtUsuario.Text); if (res.Count > 0) { PreguntasSeguridad frmPreguntas = new PreguntasSeguridad(this); frmPreguntas.DataFill = res; bool Resp = frmPreguntas.ShowDialog() ?? false; } else { MessageBox.Show("El usuario que ha escrito en el login no existe", "SwissNet", MessageBoxButton.OK, MessageBoxImage.Error); } } }
public CambiarContraseña(PreguntasSeguridad parentfrm) { InitializeComponent(); ParentForm = parentfrm; }