예제 #1
0
        /// <summary>
        /// Gets updates for the installed packages.
        /// </summary>
        private void GetAllAvailableUpdates()
        {
            _list = null;

            // Look for packages to be updated in the folder where Extension Manager downloads new packages.
            _getpack = new GetPackage(_packages);
            var localPackages = _getpack.GetPackagesFromExtensions(_app.Extensions).ToList();

            if (localPackages.Count > 0)
            {
                GetAvailableUpdatesFromLocal(localPackages);
            }
        }
예제 #2
0
        /// <summary>
        /// Gets updates for the installed packages.
        /// </summary>
        private void getAllAvailableUpdates()
        {
            list = null;

            //Look for packages to be updated in the folder where Extension Manager downloads new packages.
            getpack = new GetPackage(packages);
            IEnumerable <IPackage> localPackages = getpack.GetPackagesFromExtensions(App.Extensions);

            if (localPackages.Count() > 0)
            {
                getAvailableUpdatesFromLocal(localPackages);
            }
        }
예제 #3
0
        private void getAllAvailableUpdates()
        {
            list = null;

            //Look for packages to be updated in the folder where Extension Manager downloads new packages.
            getpack = new GetPackage(packages);
            IEnumerable<IPackage> localPackages = getpack.GetPackagesFromExtensions(App.Extensions);
            List<String> packageNames = null;
            if (localPackages.Count() > 0)
            {
                getAvailableUpdatesFromLocal(localPackages);
                packageNames = getPackageNames(localPackages);
            }

            //Find other packages that may need updating by looking at the current feed and comparing to installed packages.
            getAvailableUpdatesFromFeed(packageNames);
        }
예제 #4
0
        private void getAllAvailableUpdates()
        {
            list = null;

            //Look for packages to be updated in the folder where Extension Manager downloads new packages.
            getpack = new GetPackage(packages);
            IEnumerable <IPackage> localPackages = getpack.GetPackagesFromExtensions(App.Extensions);
            List <String>          packageNames  = null;

            if (localPackages.Count() > 0)
            {
                getAvailableUpdatesFromLocal(localPackages);
                packageNames = getPackageNames(localPackages);
            }

            //Find other packages that may need updating by looking at the current feed and comparing to installed packages.
            getAvailableUpdatesFromFeed(packageNames);
        }
예제 #5
0
        public void RefreshUpdate(ListView listview, TabPage tab)
        {
            getpack = new GetPackage(packages);
            IEnumerable<IPackage> localPackages = getpack.GetPackagesFromExtensions(App.Extensions);
            if (localPackages.Count() > 0)
            {
                IEnumerable<IPackage> list = null;
                try
                {
                    list = packages.Repo.GetUpdates(localPackages, false, false);
                }
                catch (WebException)
                {
                    listview.Invoke((Action)(() =>
                        {
                            listview.Clear();
                            listview.Items.Add("Updates could not be retrieved for the selected feed.");
                            listview.Items.Add("Try again later or change the feed.");
                        }));
                }

                listview.Invoke((Action)(() =>
                {
                    listview.Clear();
                    int Count = list.Count();
                    tab.Text = String.Format("Updates ({0})", Count);
                    Add.AddPackages(list, listview, 0);
                    if (listview.Items.Count == 0)
                    {
                        listview.Clear();
                        listview.Items.Add("No updates available for the selected feed.");
                    }
                }));
            }
            else
            {
                listview.Invoke((Action)(() =>
                {
                    listview.Clear();
                    listview.Items.Add("No packages are installed.");
                }));
            }
        }
예제 #6
0
        /// <summary>
        /// Gets updates for the installed packages.
        /// </summary>
        private void getAllAvailableUpdates()
        {
            list = null;

            //Look for packages to be updated in the folder where Extension Manager downloads new packages.
            getpack = new GetPackage(packages);
            IEnumerable<IPackage> localPackages = getpack.GetPackagesFromExtensions(App.Extensions);

            if (localPackages.Count() > 0)
            {
                getAvailableUpdatesFromLocal(localPackages);
            }
        }