public DefaultSplashScreenViewModel(IEventAggregator eventAggregator,
                                            MjolnirApp app)
        {
            _app             = app;
            _eventAggregator = eventAggregator;

            if (!string.IsNullOrWhiteSpace(app.ApplicationName))
            {
                ApplicationName = app.ApplicationName;
            }


            if (app?.ApplicationIconSource != null)
            {
                ApplicationIconSource = app.ApplicationIconSource;
            }

            _eventAggregator.GetEvent <SplashScreenUpdateEvent>().Subscribe(e => UpdateMessage(e.Text));
            IsValidationEnabled = false;
        }
Ejemplo n.º 2
0
 public ShellViewModel(MjolnirApp app)
 {
     IsValidationEnabled = false;
     _app = app;
 }