Dev2.Utilities.ActivityHelper.SetSwitchKeyProperty C# (CSharp) Method

SetSwitchKeyProperty() public static method

public static SetSwitchKeyProperty ( Dev2Switch ds, System.Activities.Presentation.Model.ModelItem switchCase ) : void
ds Dev2.Data.SystemTemplates.Models.Dev2Switch
switchCase System.Activities.Presentation.Model.ModelItem
return void
        public static void SetSwitchKeyProperty(Dev2Switch ds, ModelItem switchCase)
        {
            if(ds != null)
            {
                ModelProperty keyProperty = switchCase.Properties["Key"];

                if(keyProperty != null)
                {
                    keyProperty.SetValue(ds.SwitchVariable);

                }
            }
        }