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; } }
public LogInResult(LoginStatusTypes status, MyUser user) { this.Status = status; this.User = user; }
public LogInResult(LoginStatusTypes status) { this.Status = status; }