Exemple #1
0
        private void SyncCompanyInfo()
        {
            companyService = new CompanyService();
            companyService.Init();

            var injectService = new InjectService();
            injectService.CancellationTokenSource = companyService.CancellationTokenSource;
            injectService.Sync_D_QY_ZYJSRY(NotifyProcessBar);

            var syncSettings = new List<string>();
            foreach (DataSetting item in clbSyncSettings.CheckedItems) {
                syncSettings.Add(item.Name);
            }

            companyService.Sync(NotifyProcessBar, syncSettings.ToArray());
        }