private void Social_Status(object sender, LoginStatusTypes Type)
        {
            switch (Type)
            {
            case LoginStatusTypes.Success:
                this.Dispatcher.Invoke(() => { (sender as Window).Close(); });
                break;

            case LoginStatusTypes.Fail:
                this.Dispatcher.Invoke(() => { (sender as Window).Close(); });
                MessageBox.Show("Serwer nie odpowiada");
                break;
            }
        }
Example #2
0
 public LogInResult(LoginStatusTypes status, MyUser user)
 {
     this.Status = status;
     this.User   = user;
 }
Example #3
0
 public LogInResult(LoginStatusTypes status)
 {
     this.Status = status;
 }