protected override void OnRefresh(TriggeredBy triggeredBy) { if (!_repo.Load(Cfg.BinUploader)) { Error_n("Failed to load Folders repo.", ""); return; } MainList.Clear(); _repo.All.ForEach(x => MainList.Add(x)); MainList.SelectOne(0); }
protected async override void OnRefresh(TriggeredBy triggeredBy) { IsBusy = true; await _remotes.LoadAsync(new CancellationToken(), URL.repo_data_source, _app.Nid); var groupd = new List<RemoteVsLocalFile>(); try { groupd = _grouper.GroupFilesByName(_app.Path, _remotes, SyncDirection.Upload); } catch (Exception ex) { Error_n("Error in: _grouper.GroupFilesByName()", ex.Details()); } MainList.Clear(); groupd.ForEach(x => MainList.Add(x)); IsBusy = false; }
protected async override void OnRefresh(TriggeredBy triggeredBy) { IsBusy = true; await _remotes.LoadAsync(new CancellationToken(), URL.repo_data_source, _app.Nid); var groupd = new List <RemoteVsLocalFile>(); try { groupd = _grouper.GroupFilesByName(_app.Path, _remotes, SyncDirection.Upload); } catch (Exception ex) { Error_n("Error in: _grouper.GroupFilesByName()", ex.Details()); } MainList.Clear(); groupd.ForEach(x => MainList.Add(x)); IsBusy = false; }
protected virtual void OnRefresh(TriggeredBy triggeredBy) { }