public void UpdatePackagesList() { _dispatcher.Invoke(() => Packages.Clear()); var packages = AdbShell.GetAllPackagesList(_id); var qvcPackages = packages.Where((x) => x.Contains("com.qvc") || x.Contains("com.qvcuk") || x.Contains("de.qvc")).ToList(); _dispatcher.Invoke(()=>qvcPackages.ForEach((p) => Packages.Add(new Build(p, _id)))); SelectedPackage = new Build(String.Empty, String.Empty); }
private void UninstallObject() { AdbShell.UninstallApk(SelectedPackage.PackageName, SelectedPackage.DeviceId); Packages.Remove(Packages.Where(x => x.PackageName == SelectedPackage.PackageName).FirstOrDefault()); SelectedPackage = new Build("", Id); }