Наследование: IPropertyEditorWizard
Пример #1
0
 internal static string CleanModelData(Dev2DecisionCallbackHandler callBackHandler)
 {
     // Remove naughty chars...
     string tmp = callBackHandler.ModelData;
     // remove the silly Choose... from the string
     tmp = Dev2DecisionStack.RemoveDummyOptionsFromModel(tmp.ToStringBuilder());
     // remove [[]], &, !
     tmp = Dev2DecisionStack.RemoveNaughtyCharsFromModel(tmp);
     return tmp;
 }
Пример #2
0
        public static Dev2DecisionCallbackHandler ShowDecisionDialog(IEnvironmentModel environment, string webModel)
        {
            const int DialogWidth = 824;
            const int DialogHeight = 510;

            var callBackHandler = new Dev2DecisionCallbackHandler { ModelData = webModel };
            const string RelativeUriString = "decisions/wizard";
            if(!IsTestMode)
            {
                environment.ShowWebPageDialog(SiteName, RelativeUriString, callBackHandler, DialogWidth, DialogHeight, "Switch Flow");
            }
            else
            {
                TestModeRelativeUri = RelativeUriString;
            }
            return callBackHandler;
        }