Exemplo n.º 1
0
 void uploader_UploadStarted(Uploader.UploadInfo uploadInfo)
 {
     uploadProgress.RemoveLastLabel();
     uploadProgress.SetStatus(uploadInfo.filename);
     uploadProgress.SetProgress(0);
     uploadProgress.SetBackColor(Color.Yellow);
     uploadProgress.DoShow();
 }
Exemplo n.º 2
0
        public void AddUpload(string filename, MemoryStream mstr)
        {
            if (!credentialsSet)
            {
                MessageBox.Show("Please set credentials first", "foxScreen");
                return;
            }

            Uploader.UploadInfo uploadInfo = uploader.QueueAsync(filename, mstr);
            uploadProgress.AddLabel(uploadInfo.filename);
        }
Exemplo n.º 3
0
        void uploader_UploadFinished(Uploader.UploadInfo uploadInfo, bool success, string error_or_link)
        {
            uploadProgress.SetProgress(1);

            if (success)
            {
                Main.mainFrm.Invoke(new MethodInvoker(delegate()
                {
                    Clipboard.SetText(error_or_link);
                }));

                uploadProgress.SetBackColor(Color.Green);
            }
            else
            {
                MessageBox.Show(error_or_link, "foxScreen", MessageBoxButtons.OK, MessageBoxIcon.Error);

                uploadProgress.SetBackColor(Color.Red);
            }

            uploadProgress.DoHide();
        }
Exemplo n.º 4
0
 void uploader_UploadProgress(Uploader.UploadInfo uploadInfo, double progress)
 {
     uploadProgress.SetProgress((float)progress);
 }