Dev2.Webs.RootWebSite.ShowDecisionDialog C# (CSharp) Method

ShowDecisionDialog() public static method

public static ShowDecisionDialog ( IEnvironmentModel environment, string webModel ) : Dev2DecisionCallbackHandler
environment IEnvironmentModel
webModel string
return Dev2.Webs.Callbacks.Dev2DecisionCallbackHandler
        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;
        }