BattlelogMobile.Client.ViewModel.MainViewModel.NotificationMessageReceived C# (CSharp) Метод

NotificationMessageReceived() приватный Метод

private NotificationMessageReceived ( NotificationMessage message ) : void
message GalaSoft.MvvmLight.Messaging.NotificationMessage
Результат void
        private void NotificationMessageReceived(NotificationMessage message)
        {
            string target = (string) message.Target;
            string notification = message.Notification;

            if (target == Common.ProggressIndicator)
            {
                DispatcherHelper.CheckBeginInvokeOnUI(() => StatusInformation = notification);
            }
            else if (target == Common.DeveloperInformation)
            {
                DispatcherHelper.CheckBeginInvokeOnUI(() => ServerMessage = notification);
            }
            else
            {
                ResetControls();
                DispatcherHelper.CheckBeginInvokeOnUI(() => LogInFailedReason = notification);
            }
        }