public FlowSettings(int userId, FlowState flowState, NavigationBar navigationBar, ScreenSettingsBase screenSettings) { UserId = userId; FlowState = flowState; NavigationBar = navigationBar; ScreenSettings = screenSettings; }
internal static Page CreatePage(this ScreenSettingsBase screenSettings) { return(CreatePage(Enum.GetName(typeof(ViewType), screenSettings.ViewType))); Page CreatePage(string viewName) { FlyoutDetailViewModelBase viewModel = (FlyoutDetailViewModelBase)App.ServiceProvider.GetRequiredService ( typeof(FlyoutDetailViewModelBase).Assembly.GetType ( $"Contoso.XPlatform.ViewModels.{viewName}ViewModel" ) ); viewModel.Initialize(screenSettings); return((Page)Activator.CreateInstance ( typeof(MainPageView).Assembly.GetType ( $"Contoso.XPlatform.Views.{viewName}ViewCS" ), viewModel )); } }
public void DisplayInputQuestions(InputFormParameters form, ICollection <ConnectorParameters> connectors = null) { InputFormView formView = this.Mapper.Map <InputFormView>(form); this.screenData.ScreenSettings = new ScreenSettings <InputFormView> ( formView, this.Mapper.Map <IEnumerable <ConnectorParameters>, IEnumerable <CommandButtonView> >(connectors), ViewType.InputForm, new MenuItem { Text = formView.Title, Icon = formView.Icon } ); }
internal static Page CreatePage(this ScreenSettingsBase screenSettings) { return(CreatePage(Enum.GetName(typeof(ViewType), screenSettings.ViewType))); Page CreatePage(string viewName) => (Page)Activator.CreateInstance ( typeof(MainPageView).Assembly.GetType ( $"Contoso.XPlatform.Views.{viewName}ViewCS" ), (ViewModelBase)Activator.CreateInstance ( typeof(ViewModelBase).Assembly.GetType ( $"Contoso.XPlatform.ViewModels.{viewName}ViewModel" ), screenSettings ) ); }
private UserControl GetNewUserControl(ScreenSettingsBase screenSettings, double transitionOffset) { switch (screenSettings.ViewType) { case ViewType.Exception: return(new Screens.Exception((ScreenSettings <ExceptionView>)screenSettings, transitionOffset)); case ViewType.Message: return(new Message((ScreenSettings <MessageTemplateView>)screenSettings, UiNotificationService, transitionOffset)); case ViewType.Select: return(new SelectButton((ScreenSettings <MessageTemplateView>)screenSettings, UiNotificationService, transitionOffset, svDialog)); case ViewType.InputForm: return(new InputForm((ScreenSettings <InputFormView>)screenSettings, UiNotificationService, transitionOffset)); case ViewType.FlowComplete: return(new FlowComplete((ScreenSettings <FlowCompleteView>)screenSettings, UiNotificationService, transitionOffset)); default: throw new ArgumentException("{7D11F37A-6B5D-4063-A232-445DFD417B75}"); } }
public override void Initialize(ScreenSettingsBase screenSettings) { ListPageCollectionViewModel = CreateSearchPageListViewModel((ScreenSettings <ListFormSettingsDescriptor>)screenSettings); }
public abstract void Initialize(ScreenSettingsBase screenSettings);
public FlowSettings(ScreenSettingsBase screenSettings) { ScreenSettings = screenSettings; }
public override void Initialize(ScreenSettingsBase screenSettings) { DetailFormEntityViewModel = CreateDetailFormViewModel((ScreenSettings <DataFormSettingsDescriptor>)screenSettings); }
public FlowSettings(FlowState flowState, NavigationBar navigationBar, ScreenSettingsBase screenSettings) { FlowState = flowState; NavigationBar = navigationBar; ScreenSettings = screenSettings; }
private void SetExceptionDialog(ScreenSettingsBase screenSettings) { ChangeDialog(GetNewUserControl(screenSettings, 0)); ElementSoundPlayer.Play(ElementSoundKind.Invoke); }
private void SetNextDialog(ScreenSettingsBase screenSettings) { ChangeDialog(GetNewUserControl(screenSettings, 300)); ElementSoundPlayer.Play(ElementSoundKind.MoveNext); }
private void SetPreviousDialog(ScreenSettingsBase screenSettings) { ChangeDialog(GetNewUserControl(screenSettings, -300)); ElementSoundPlayer.Play(ElementSoundKind.MovePrevious); }
public override void Initialize(ScreenSettingsBase screenSettings) { SearchPageEntityViewModel = CreateSearchPageListViewModel((ScreenSettings <SearchFormSettingsDescriptor>)screenSettings); }
public FlowSettings(FlowDataCache flowDataCache, NavigationBarDescriptor navigationBar, ScreenSettingsBase screenSettings) { FlowDataCache = flowDataCache; NavigationBar = navigationBar; ScreenSettings = screenSettings; }
public EditFormViewModel(ScreenSettingsBase screenSettings) { EditFormEntityViewModel = CreateEditFormViewModel((ScreenSettings <EditFormSettingsDescriptor>)screenSettings); }
public FlowSettings(FlowState flowState, FlowDataCache flowDataCache, ScreenSettingsBase screenSettings) { FlowState = flowState; FlowDataCache = flowDataCache; ScreenSettings = screenSettings; }
public override void Initialize(ScreenSettingsBase screenSettings) { TextPageScreenViewModel = CreateTextPageScreenViewModel((ScreenSettings <TextFormSettingsDescriptor>)screenSettings); }
public void FlowComplete() { this.screenData.ScreenSettings = new ScreenSettings <ViewBase>(null, (IEnumerable <CommandButtonView>)null, ViewType.FlowComplete, new MenuItem { }); }