Beispiel #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);
            }
        }
Beispiel #2
0
 void ftpobject_downloadComplete(object sender, downloadCompleteEventArgs e)
 {
     progressBar.Style = ProgressBarStyle.Blocks;
     statusBar.Text    = "Скачка завершена: " + e.filename + Environment.NewLine + statusBar.Text;
     refreshLocal();
 }