public static void Upload_Request_Thread(string url, string file) { NameValueCollection data = new NameValueCollection(); UpLoadThread ut = new UpLoadThread(); ut.url = url; ut.files = new string[] { file }; ut.data = data; ut.encoding = DEFAULTENCODE; Thread th = new Thread(ut.Upload_Request); th.Start(); }
private void UploadAndAutoExchangeOnStripMenuItem_Click(object sender, EventArgs e) { VisibleMenuItem(false); if (GlobalVars.CurrentSettingsBase.Settings.Exchange_launched) { return; } UpLoadThreadMT = new UpLoadThread(); UpLoadThreadMT.ThreadName = "UpLoadThreadMT"; UpLoadThreadMT.SettingsBase = GlobalVars.CurrentSettingsBase; UpLoadThreadMT.Mode = 22; UpLoadThreadMT.ClosingThread += ClosingThreadDelegate; UpLoadThreadMT.AddLog += AddLogEvent; UpLoadThreadMT.EditDGV += EditDGVEvent; UpLoadThreadMT.EditTabPageText += EditTabPageTextEvent; UpLoadThreadMT.Start(); }