private bool usuarioValido() { status.Foreground = new SolidColorBrush(Colors.Red); if (txtUsuario.Text == "") { status.Text = ("El campo no puede estar vacio"); return(false); } else if (listaUsuarios.GetUsuario(txtUsuario.Text) != null) { status.Text = ("Usuario en uso"); return(false); } else { return(true); } }