private void BAdd_Click(object sender, RoutedEventArgs e) { if (!UsersServices.ExistLogin(TBlogin.Text)) { if (TBPaterno.Text != "" && TBMaterno.Text != "" && TBlogin.Text != "" && TBPassword.Text != "") { UsersServices.AddThisUser(TBName.Text, TBPaterno.Text, TBMaterno.Text, TBlogin.Text, TBPassword.Text); } else { ShowMessage("Error", "No se puedo Agregar al Usuario"); } showAllUser(); cleanFields(); } else { ShowMessage("Error", "El usuario ya existe, use otro login"); } }