private void InstallAddon() { try { var href = currentItem.href + "/download"; if (!String.IsNullOrEmpty(href)) { currentItem.isInstall = true; UpdateDetailHeader(currentItem); UpdateDownloadFlag(currentItem.id); AddonListItem ad = new AddonListItem { addon_id = currentItem.id, title = currentItem.title, local_version = "", href = href }; Settings.db.AddAddon(ad); Settings.needResfresh = true; } else { UpdateDownloadFlag(null); } }catch (Exception e) { Settings.LogException(e); } }
public Worker(AddonListItem ali) { addon = ali; result = new WorkerResult { success = false, msg = new List <string>() }; }