Esempio n. 1
0
 private void SetIsUploading(bool uploading)
 {
     LocalParams.InvokeIfRequired(c => c.Enabled    = !uploading);
     RemoteParams.InvokeIfRequired(c => c.Enabled   = !uploading);
     DoUpload.InvokeIfRequired(c => c.Enabled       = !uploading);
     UploadProgress.InvokeIfRequired(c => c.Visible = uploading);
 }
Esempio n. 2
0
        private void OnUploadCompleted(string key, ResponseInfo respInfo, string respJson)
        {
            string str = respJson;
            // respJson是返回的json消息,示例: { "key":"FILE","hash":"HASH","fsize":FILE_SIZE }
            DoUpload load = UploadH;

            if (load == null)
            {
                return;
            }
            load();
        }