Beispiel #1
0
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages()
        {
            this.ValidateDevice();

            PackageManagerReceiver pmr = new PackageManagerReceiver(this.Device, this);

            switch (this.appListType)
            {
            case AppListType.Full:
                this.Device.ExecuteShellCommand(this.client, ListFull, pmr);
                break;

            case AppListType.SystemOnly:
                this.Device.ExecuteShellCommand(this.client, ListSystemOnly, pmr);
                break;

            case AppListType.ThirdPartyOnly:
                this.Device.ExecuteShellCommand(this.client, ListThirdPartyOnly, pmr);
                break;

            default:
                break;
            }

            //if (this.ThirdPartyOnly)
            //{
            //    this.Device.ExecuteShellCommand(this.client, ListThirdPartyOnly, pmr);
            //}
            //else
            //{
            //    this.Device.ExecuteShellCommand(this.client, ListFull, pmr);
            //}
        }
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages()
        {
            this.ValidateDevice();

            PackageManagerReceiver pmr = new PackageManagerReceiver(this.Device, this);

            if (this.ThirdPartyOnly)
            {
                this.Device.ExecuteShellCommand(ListThirdPartyOnly, pmr);
            }
            else
            {
                this.Device.ExecuteShellCommand(ListFull, pmr);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages()
        {
            this.ValidateDevice();

            PackageManagerReceiver pmr = new PackageManagerReceiver(this.Device, this);

            if (this.ThirdPartyOnly)
            {
                this.Device.ExecuteShellCommand(ListThirdPartyOnly, pmr);
            }
            else
            {
                this.Device.ExecuteShellCommand(ListFull, pmr);
            }
        }