Esempio n. 1
0
 private void validachek()
 {
     if (checkBox2.Checked)
     {
         ImportRegionUserWorker.RunWorkerAsync();
     }
     else
     if (checkBox3.Checked)
     {
         ImportStoreWorker.RunWorkerAsync();
     }
     else if (checkBox4.Checked)
     {
         ImportRouteWorker.RunWorkerAsync();
     }
     else if (checkBox5.Checked)
     {
         ImportStockWorker.RunWorkerAsync();
     }
     else if (checkBox6.Checked)
     {
         ImportOrderInvoice.RunWorkerAsync();
     }
     else if (checkBox7.Checked)
     {
         ImportItemInvoiceType.RunWorkerAsync();
     }
     else if (checkBox8.Checked)
     {
         ImportVisitWorker.RunWorkerAsync();
     }
 }
Esempio n. 2
0
        private void ImportStoreWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (ImportStore.Rows.Count > 1)
            {
                To_txt(ImportStore, "ImportStore", 1);
                checkBox3.Checked = false;
            }

            if (ImportStorerror.Rows.Count >= 1)
            {
                To_txt(ImportStorerror, "ImportStoreERROR", 0);
            }

            if (Proceso == 1)
            {
                ImportRouteWorker.RunWorkerAsync();
            }
            else
            {
                validachek();
            }
        }