Beispiel #1
0
 private void Update_Click(object sender, RoutedEventArgs e)
 {
     if (this.pass1.Password != this.pass2.Password)
     {
         this.Error.Content = "Password isn't same...";
     }
     else
     {
         PLayer newLayer = new PLayer();
         int    count    = newLayer.UpdatePassword(this.username.Text, this.pass1.Password);
         if (count > 0)
         {
             this.Error.Content = "Password Updated!";
         }
         else
         {
             this.Error.Content = "ERROR! ID doesn't found!";
         }
     }
 }