Beispiel #1
0
        async Task StartGetAllFileInformationAsyncAsync()
        {
            FolderData = await RestAPIs.GetAllFileInformationAsync(_clientInfor.UserInfor.Username, _clientInfor.UserInfor.Password, "root");

            bgwSync = new BackgroundWorker();
            bgwSync.WorkerReportsProgress      = true;
            bgwSync.WorkerSupportsCancellation = true;
            bgwSync.DoWork             += BgwSync_DoWork;
            bgwSync.ProgressChanged    += BgwSync_ProgressChanged;
            bgwSync.RunWorkerCompleted += BgwSync_RunWorkerCompleted;
            updatedFile = 0;
            bgwSync.RunWorkerAsync();
            RenderControl();
        }