private void ResendAccountMultiThread(object Parameter) { try { string account = string.Empty; string tempEmail = string.Empty; string post = string.Empty; Array paramsArray = new object[1]; paramsArray = (Array)Parameter; string item = paramsArray.GetValue(0).ToString(); account = item;//item.Key; GlobusHttpHelper HttpHelper = new GlobusHttpHelper(); LinkedinLogin Login = new LinkedinLogin(); try { string[] arrItem = Regex.Split(item, ":"); tempEmail = arrItem[0]; if (arrItem.Length == 2) { Login.accountUser = arrItem[0]; //item.Key; Login.accountPass = arrItem[1];//item.Value._Password; } else if (arrItem.Length == 4) { Login.accountUser = arrItem[0]; //item.Key; Login.accountPass = arrItem[1];//item.Value._Password; Login.proxyAddress = arrItem[2];//item.Value._ProxyAddress; Login.proxyPort = arrItem[3];//item.Value._ProxyPort; } else if (arrItem.Length == 6) { Login.accountUser = arrItem[0]; //item.Key; Login.accountPass = arrItem[1];//item.Value._Password; Login.proxyAddress = arrItem[2];//item.Value._ProxyAddress; Login.proxyPort = arrItem[3];//item.Value._ProxyPort; Login.proxyUserName = arrItem[4];//item.Value._ProxyUsername; Login.proxyPassword = arrItem[5];//item.Value._ProxyPassword; } else { AddAccountVerificationLogger("[ " + DateTime.Now + " ] => [ Account Not in Correct format " + item + " ]"); } Login.logger.addToLogger += new EventHandler(AccountVerificationLogEvents_addToLogger); Login.LoginHttpHelper(ref HttpHelper); if (Login.IsLoggedIn) { Login.ResendConfirmation(ref HttpHelper); } Login.logger.addToLogger += new EventHandler(AccountVerificationLogEvents_addToLogger); } catch (Exception ex) { Console.WriteLine("Error Resnd Confirmation I >>> " + ex.StackTrace); } } catch (Exception ex) { Console.WriteLine("Error Resnd Confirmation II >>> " + ex.StackTrace); } finally { counter_AccVerification--; if (counter_AccVerification == 0) { btnResendVerfication.Invoke(new MethodInvoker(delegate { AddAccountVerificationLogger("[ " + DateTime.Now + " ] => [ PROCESS COMPLETED ]"); AddAccountVerificationLogger("--------------------------------------------------------------------------------------------------------------------------"); btnResendVerfication.Cursor = Cursors.Default; })); } } }