示例#1
0
        void OnDownloadComplete(string filename)
        {
            EventHandler <downloadCompleteEventArgs> temp = downloadComplete;

            if (temp != null)
            {
                downloadCompleteEventArgs e = new downloadCompleteEventArgs();
                e.filename = filename;
                context.Post(delegate(object state) { downloadComplete(this, e); }, null);
            }
        }
示例#2
0
 void ftpobject_downloadComplete(object sender, downloadCompleteEventArgs e)
 {
     progressBar.Style = ProgressBarStyle.Blocks;
     statusBar.Text    = "Скачка завершена: " + e.filename + Environment.NewLine + statusBar.Text;
     refreshLocal();
 }