Exemplo n.º 1
0
 public AlertViewModel(ActivateViewModelMsg input)
 {
     var alert = (AlertMsg)input;
     Title = alert.Title;
     AlertType = alert.AlertType;
     Body = alert.Body;
 }
Exemplo n.º 2
0
        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));
            }
        }