コード例 #1
0
        public Task<bool?> ShowWizardAsync(IWizard wizard)
        {
            Argument.IsNotNull(() => wizard);

            Log.Debug("Showing wizard '{0}'", wizard.GetType().GetSafeFullName());

            return _uiVisualizerService.ShowDialogAsync<WizardViewModel>(wizard);
        }
コード例 #2
0
        public Task <bool?> ShowWizardAsync(IWizard wizard)
        {
            Argument.IsNotNull(() => wizard);

            Log.Debug("Showing wizard '{0}'", wizard.GetType().GetSafeFullName(false));

            return(_uiVisualizerService.ShowDialogAsync <WizardViewModel>(wizard));
        }
コード例 #3
0
ファイル: WizardService.cs プロジェクト: WildGums/Orc.Wizard
        public Task <bool?> ShowWizardAsync(IWizard wizard)
        {
            Argument.IsNotNull(() => wizard);

            Log.Debug("Showing wizard '{0}'", wizard.GetType().GetSafeFullName(false));

            if (wizard is SideNavigationWizardBase)
            {
                return(_uiVisualizerService.ShowDialogAsync <SideNavigationWizardViewModel>(wizard));
            }

            if (wizard is FullScreenWizardBase)
            {
                return(_uiVisualizerService.ShowDialogAsync <FullScreenWizardViewModel>(wizard));
            }

            return(_uiVisualizerService.ShowDialogAsync <WizardViewModel>(wizard));
        }