public void SetEnableGoods(bool enableGoods) { string strStartGood = "66,67,69,76,87,91,113,114,118"; string strStartGoodBar = "60"; List <bool> ststus = new List <bool> { enableGoods, enableGoods }; List <string> moduleIDs = new List <string> { strStartGoodBar, strStartGood }; SysParameter bllUpdateParameter = new SysParameter(); bllUpdateParameter.SwitchingMode(ststus, moduleIDs); }