Пример #1
0
 public override IScreenFlowConfigurator OnDefiningAdditionalInitialStateTransitions(IScreenFlowConfigurator preStartCfg,
                                                                                     UiFlowContextData contextData)
 {
     return(preStartCfg.OnEventNavigatesTo(ScreenEvent.Start, GreenFlowScreenName.Step0Screen
                                           , () => contextData.GetCurrentStepData <StartScreenModel>().SampleParameter != "Finish"
                                           , "normal start"
                                           )
            .OnEventNavigatesTo(ScreenEvent.Start, GreenFlowScreenName.FlowCompletedScreen
                                , () => contextData.GetCurrentStepData <StartScreenModel>().SampleParameter == "Finish"
                                , "straight to the end"
                                ));
 }
Пример #2
0
 public UiFlowScreenModel RefreshStepData(IDictionary <string, object> routeParameters = null)
 {
     return(_target.RefreshStepDataAsync(_uiFlowContextData,
                                         _uiFlowContextData.GetCurrentStepData <UiFlowScreenModel>(), routeParameters).GetAwaiter().GetResult());
 }