Пример #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();
     }
 }
Пример #2
0
 private void ImportStockWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (ImportStock.Rows.Count > 1)
     {
         To_txt(ImportStock, "ImportStock", 1);
         checkBox5.Checked = false;
     }
     if (Proceso == 1)
     {
         ImportOrderInvoice.RunWorkerAsync();
     }
     else
     {
         validachek();
     }
 }