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);
}
}