Ejemplo n.º 1
0
 private void Worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     if (e.ProgressPercentage == -1)
     {
         lblError.Content = "User Already Exists !";
         return;
     }
     else if (e.ProgressPercentage == 1)
     {
         this.Hide();
         HomeWindow h = new HomeWindow(user);
         h.Show();
         this.Close();
     }
 }
Ejemplo n.º 2
0
 private void Worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     if (e.ProgressPercentage == -1)
     {
         lblError.Content = "Incorrect Username or password !";
         return;
     }
     else if (e.ProgressPercentage == 1)
     {
         this.Hide();
         HomeWindow h = new HomeWindow(user);
         h.Show();
         this.Close();
     }
     else if (e.ProgressPercentage == 0)
     {
         lblError.Content = "User already Logged In !";
         return;
     }
 }