コード例 #1
0
        /// <summary>
        /// Forces to re-evaluate CanExecute on the Prism commands
        /// </summary>
        public override void RaiseCanExecuteChanges()
        {
            base.RaiseCanExecuteChanges();

            SubmitCommand.RaiseCanExecuteChanged();
            CloseDialogCommand.RaiseCanExecuteChanged();
        }
コード例 #2
0
        public async void OnDialogOpened(IDialogParameters parameters)
        {
            var progress = new Progress <int>(value =>
            {
                EvaluationProgress = value;

                if (value >= 100)
                {
                    EvaluationCompleted = true;
                    CloseDialogCommand.RaiseCanExecuteChanged();
                }
            });

            await _evaluationManager.EvaluateAsync(progress);
        }