예제 #1
0
        protected BaseViewModel(string urlPathSegment, IMainViewModel mainVM)
        {
            _clearNotification = () => mainVM.ClearNotification();
            _showErrorAction   = mainVM.ShowError;
            _setNotification   = mainVM.SetNotification;

            UrlPathSegment = urlPathSegment;

            ThrownExceptions.Subscribe(ErrorHandler(nameof(BaseViewModel)));
        }