Exemple #1
0
        private void UploadProcess(int count)
        {
            int val = count;

            switch (val)
            {
            case 1:
                Uploading.Items();
                break;

            case 3:
                Uploading.Customers();
                break;

            case 4:
                Uploading.User();
                break;

            case 5:
                Uploading.Schedules();
                break;

            case 6:
                Uploading.Companys();
                break;

            case 7:

                break;

            case 8:

                break;

            case 9:

                break;

            case 10:

                break;

            case 11:

                break;

            case 12:
                Uploading.Deliverys();
                break;

            case 13:

                break;

            case 14:
                Uploading.Invoices();
                break;

            case 15:

                break;

            case 16:
                Uploading.CaseTransactions();
                break;

            case 17:

                break;

            case 18:
                Uploading.Payments();
                break;

            case 19:

                break;

            case 20:
                Uploading.Order();
                break;

            case 21:

                break;

            case 22:
                Uploading.Instructions();
                break;

            case 23:

                break;

            case 24:
                Uploading.Follows();
                break;

            case 25:

                break;

            case 26:
                Uploading.ItemReviews();
                break;

            case 27:

                break;

            case 28:
                Uploading.Vendors();
                break;

            case 29:

                break;

            case 30:
                Uploading.ItemStatuses();
                break;

            case 31:

                break;

            case 32:
                Uploading.Rates();
                break;

            case 33:

                break;

            case 34:
                Uploading.Accounts();
                break;

            case 35:

                break;

            case 36:
                Uploading.Repsonsibles();
                break;

            case 37:

                break;

            case 38:
                Uploading.Insurances();
                break;

            case 39:

                break;

            case 40:

                break;

            case 41:

                if (DBConnect.CloseMySqlConn())
                {
                    FeedBack("Uploading of information complete");
                    backgroundWorker.Dispose();
                    return;
                }
                else
                {
                    FeedBack("No valid connection ");
                }
                break;

            case 42:

                break;

            default:
                FeedBack("Processing");
                break;
            }
        }