コード例 #1
0
    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();
    }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: sitdikov-ayaz/exchange_1c
        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();
        }