private void LoginDone(ResponseLoginClass AObject) { ClearMessage(); if (AObject.Active == ServerLib.JTypes.Enums.UserActive.blocked) { BlockMessage("Пользователь заблокирован"); } else { OnSubscribed(); NavigationService.Instance.Navigate(new AplicationViewModel()); } }
private void OnLoginDone(object sender, ResponseLoginClass e) { Application.Current.Dispatcher.Invoke(() => LoginDone(e)); }