public static IScriptName GetScriptName(string ScriptName)
 {
     IScriptName tempScriptName = null;
     switch (ScriptName)
     {
         case "Required":
             tempScriptName = new RequiredClass();
             break;
         case "Enabled":
             tempScriptName = new EnabledClass();
             break;
         default:
             break;
     }
     return tempScriptName;
 }
        public static IScriptName GetScriptName(string ScriptName)
        {
            IScriptName tempScriptName = null;

            switch (ScriptName)
            {
            case "Required":
                tempScriptName = new RequiredClass();
                break;

            case "Enabled":
                tempScriptName = new EnabledClass();
                break;

            default:
                break;
            }
            return(tempScriptName);
        }