private void ThreadUploadFile()
        {
            FileInfo finfo = new FileInfo(FilePath);

            Invoke(new Action(() =>
            {
                label_now_info.Text = "正在上传文件...";
                label_filesize.Text = SoftBasic.GetSizeDescription(finfo.Length);
                progressBar1.Value  = 0;
            }));

            OperateResult result = AdvancedFileClient.UploadFile(
                FilePath,
                finfo.Name,
                Factory,
                Group,
                Id,
                "",
                UserClient.UserAccount.UserName,
                ReportProgress);

            if (result.IsSuccess)
            {
                Invoke(new Action(() =>
                {
                    label_now_info.Text = "文件上传成功";
                }));
            }
            else
            {
                WrongTextShow("异常:" + result.Message);
            }

            IsOperateFinished = true;
        }
        private void ThreadDownloadFile()
        {
            Invoke(new Action(() =>
            {
                label_now_info.Text = "正在下载文件...";
                progressBar1.Value  = 0;
            }));


            if (!SavaPathDirectory.EndsWith(@"\"))
            {
                SavaPathDirectory = SavaPathDirectory + @"\";
            }



            OperateResult result = AdvancedFileClient.DownloadFile(
                FilePath,
                Factory,
                Group,
                Id,
                ReportProgress,
                SavaPathDirectory + FilePath
                );

            if (result.IsSuccess)
            {
                Invoke(new Action(() =>
                {
                    label_now_info.Text = "文件下载成功";
                }));
            }
            else
            {
                WrongTextShow("异常:" + result.Message);
            }

            IsOperateFinished = true;
        }