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

ShowSwitchDragDialog() public static method

public static ShowSwitchDragDialog ( IEnvironmentModel environment, string webModel ) : Dev2DecisionCallbackHandler
environment IEnvironmentModel
webModel string
return Dev2DecisionCallbackHandler
        public static Dev2DecisionCallbackHandler ShowSwitchDragDialog(IEnvironmentModel environment, string webModel)
        {
            const int DialogWidth = 752;
            const int DialogHeight = 85;

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