private void Open_Download_Shown(object sender, EventArgs e) { OpenRemoteDocument m_th = new OpenRemoteDocument(open, ress); OpenRemoteDocumentThread = new Thread(new ThreadStart(m_th.LaunchThread)); OpenRemoteDocumentThread.Start(); ShowDownloadState n_th = new ShowDownloadState(open, this); ShowDownloadStateThread = new Thread(new ThreadStart(n_th.LauchThread)); ShowDownloadStateThread.Start(); }
void PublishDoc() { try { app.ActiveDocument.Save(); string docpath = app.ActiveDocument.Path + "\\" + app.ActiveDocument.Name; string docname = app.ActiveDocument.Name; this.fs = new FileStream(docpath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); this.ress_name = this.basedir + this.publishpath + docname; } catch (Exception) { } PublishDocument m_th = new PublishDocument(this); PublishDocumentThread = new Thread(new ThreadStart(m_th.LaunchThread)); PublishDocumentThread.Start(); ShowDownloadState n_th = new ShowDownloadState(this); ShowDownloadStateThread = new Thread(new ThreadStart(n_th.LauchThread)); ShowDownloadStateThread.Start(); }