public bool RenderMap(DownloadResult result) { var item = Items.Find(i => i.Data.Filename == result.Filename && i.Data.Path == result.Path); if (item != null) { item.Update(result); return(true); } return(false); }
public void Update(DownloadResult result) { Data = result; label.Text = result.CleanName; MapView.Update(false, result.Data, null, (obj) => { Device.BeginInvokeOnMainThread(delegate { label.Text = result.CleanName + " (" + obj + ")"; }); }); HideLoading(); }
async void PopulateTemplateList(bool checkLocal = true) { await Task.Run(async() => { int index = 0; List <DownloadResult> results = new List <DownloadResult>(); foreach (var template in templates) { DownloadResult result = await DownloadFile(template.Name, checkLocal); results.Add(result); index++; } Device.BeginInvokeOnMainThread(delegate { ContentView.Templates.ShowStyles(results); }); }); }
public void Update(Octokit.RepositoryContent content) { label.Text = DownloadResult.ToCleanName(content.Name); ShowLoading(); }
public void RenderMap(DownloadResult result, int index) { StyleListItem item = Items[index]; item.Update(result); }