示例#1
0
文件: Form1.cs 项目: ertanyavuz/GGyor
 private int insertCategory(N11DataService dataService, CategoryModel category)
 {
     Debug.WriteLine("Inserting " + category.ToString());
     dataService.InsertCategory(category, N11_STORE_ID);
     var count = 1;
     foreach (var subCategory in category.Children)
     {
         count += insertCategory(dataService, subCategory);
         if (bgwReloadCategories.IsBusy)
             bgwReloadCategories.ReportProgress(count);
     }
     return count;
 }