Beispiel #1
0
        private void sendButton_Click(object sender, EventArgs e)
        {
            JSonCreater jSonFormatCookie = new JSonCreater();

            cookieString = jSonFormatCookie.formatCookie(cookie.Text);
            user         = userID.Text;
            password     = passwordTxtBox.Text;
            postString   = postStrings.addToPostString(VIN.Lines, DeviceID.Lines);
            jsonCreate(postString, user, cookieString);
            saveToExcel.writeToExcel(writeToExcelCheck);
        }
Beispiel #2
0
        private void jsonCreate(List <string> post, string user, string cookieString)
        {
            JSonCreater jSonPost      = new JSonCreater();
            int         statusCode    = 0;
            int         vehicleNumber = 0;

            foreach (string postString in post)
            {
                jSonPost.createJson(postString, user, cookieString, ref statusCode, ref vehicleNumber);

                addToListView(postString, statusCode);
                if (statusCode == 200)
                {
                    addToExcelString(vehicleNumber);
                }
            }
        }