Esempio n. 1
0
        private void ShowDisplayPackage(PackageInfo displayPackage)
        {
            SetEnabled(true);
            SetDisplayPackage(displayPackage);

            if (Collection.NeedsFetchLatest(displayPackage))
            {
                SetEnabled(false);
                Collection.FetchLatestPackageInfo(displayPackage);
            }
        }
Esempio n. 2
0
        private void ShowDisplayPackage(PackageInfo displayPackage)
        {
            SetEnabled(true);
            SetDisplayPackage(displayPackage);

            if (Collection.NeedsFetchLatest(displayPackage))
            {
                SetEnabled(false);
                Collection.FetchLatestPackageInfo(displayPackage, result =>
                {
                    if (DisplayPackage.PackageId != result.PackageId)
                    {
                        return;
                    }
                    SetDisplayPackage(result);
                    SetEnabled(true);
                });
            }
        }