Example #1
0
        void OnUploadProgress(string filename, long bytesTransferred)
        {
            EventHandler <uploadProgressEventArgs> temp = uploadProgress;

            if (temp != null)
            {
                uploadProgressEventArgs e = new uploadProgressEventArgs();
                e.filename         = filename;
                e.bytesTransferred = bytesTransferred;
                context.Post(delegate(object state) { uploadProgress(this, e); }, null);
            }
        }
Example #2
0
 void ftpobject_uploadProgress(object sender, uploadProgressEventArgs e)
 {
     progressBar.Style = ProgressBarStyle.Marquee;
 }