コード例 #1
0
        public void ClassifyAndExportDefines(IList <DistributorCat> distributorCats)
        {
            var currentClassification = BaseConstants.LoadInfo <ClassificationDefine>(BaseConstants.ClassificationDefinePath);

            foreach (var item in distributorCats)
            {
                if (!currentClassification.Distributors.Any(x => x.IncludeText(item.Distributor)))
                {
                    currentClassification.Distributors.Add(item.Distributor);
                }
            }

            BusinessFunc.ExportItemToFile(currentClassification, BaseConstants.ClassificationDefinePath);
        }
コード例 #2
0
 public void SaveItemToJson()
 {
     BusinessFunc.ExportItemToFile(Item, _FilePath);
 }