public AlertViewModel(ActivateViewModelMsg input) { var alert = (AlertMsg)input; Title = alert.Title; AlertType = alert.AlertType; Body = alert.Body; }
public ExceptionDialogViewModel(ActivateViewModelMsg input) { var exception = ((ActivateExceptionAppDialog)input).Exception; if (exception is AggregateException) { foreach (var x in ((AggregateException)exception).InnerExceptions) _exceptions.Add(FlattenException(x)); } else { _exceptions.Add(FlattenException(exception)); } }