Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public LogInResult(LoginStatusTypes status, MyUser user)
 {
     this.Status = status;
     this.User   = user;
 }
Ejemplo n.º 3
0
 public LogInResult(LoginStatusTypes status)
 {
     this.Status = status;
 }