Пример #1
0
        private void UpdateForecastRegistrationViewModel()
        {
            if (_forecastRegistrationViewModel == null)
            {
                return;
            }

            if (_selectedUser != null)
            {
                _forecastRegistrationViewModel.RefreshViewData();
            }

            _forecastRegistrationViewModel.RaiseCanExecuteActions();
        }
        public void Execute(IForecastRegistrationViewModel vm)
        {
            var msg = new StringBuilder()
                      .AppendLine("All unsaved changes will be lost!")
                      .AppendLine()
                      .AppendLine("Continue with reset?");

            if (!_commonDialogs.ContinueWarning(msg.ToString(), "Reset"))
            {
                return;
            }

            vm.RefreshViewData();
        }