Represents Facebook api upload progress changed event args.
상속: System.ComponentModel.ProgressChangedEventArgs
예제 #1
0
        /// <summary>
        /// Raise OnUploadProgressCompleted event handler.
        /// </summary>
        /// <param name="args">The <see cref="FacebookApiEventArgs"/>.</param>
#if FLUENTHTTP_CORE_TPL
        //[Obsolete]
        //[SuppressMessage("Microsoft.Design", "CA1041:ProvideObsoleteAttributeMessage")]
#endif
        protected void OnUploadProgressChanged(FacebookUploadProgressChangedEventArgs args)
        {
            if (UploadProgressChanged != null)
            {
                UploadProgressChanged(this, args);
            }
        }
 public void fb_UploadProgressChanged(object sender, FacebookUploadProgressChangedEventArgs e)
 {
     progressBar1.BeginInvoke(new MethodInvoker(() =>
     {
         progressBar1.Value = e.ProgressPercentage;
     }));
 }
예제 #3
0
 public void fb_UploadProgressChanged(object sender, FacebookUploadProgressChangedEventArgs e)
 {
     this.mainForm.progressBar1.BeginInvoke(
        new MethodInvoker(() =>
        {
            var totalBytesToSend = e.TotalBytesToSend;
            var bytesSent = e.BytesSent;
            var state = e.UserState;
            this.mainForm.progressBar1.Value = e.ProgressPercentage;
        }));
 }
예제 #4
0
 public void uploadProgressChanged(object sender, FacebookUploadProgressChangedEventArgs args)
 {
     uploadPBr.Dispatcher.BeginInvoke(
         System.Windows.Threading.DispatcherPriority.Normal,
         new System.Windows.Threading.DispatcherOperationCallback(delegate {
             if (args.ProgressPercentage == 100)
             {
                 cancelBtn.Content = "Close";
             }
             uploadPBr.Value = args.ProgressPercentage;
             return null;
         }), null
     );
 }
예제 #5
0
 private void fb_UploadProgressChanged(object sender, FacebookUploadProgressChangedEventArgs e)
 {
     BeginInvoke(new MethodInvoker(() => { var totalBytesToSend = e.TotalBytesToSend; var bytesSent = e.BytesSent; var state = e.UserState; toolStripProgressBar1.Value = e.ProgressPercentage; }));
     //toolStripProgressBar1.Value = e.ProgressPercentage;
 }
예제 #6
0
 public void fb_UploadProgressChanged(object sender, FacebookUploadProgressChangedEventArgs e)
 {
     lblPercent.BeginInvoke(new MethodInvoker(() =>
     {
         lblPercent.Text = e.ProgressPercentage.ToString() + " %";
     }));
 }
 protected void OnUploadProgressChanged(FacebookUploadProgressChangedEventArgs args)
 {
     if (UploadProgressChanged != null)
         UploadProgressChanged(this, args);
 }
 private void facebookClient_UploadProgressChanged(object sender, FacebookUploadProgressChangedEventArgs e)
 {
     ReportProgress(20 + (int)(e.ProgressPercentage * 0.80));
 }