示例#1
0
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages()
        {
            if (this.Device.IsOffline)
            {
                throw new IOException("Device is offline");
            }

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

            this.Device.ExecuteShellCommand(PM_LIST_FULL, pmr);
        }
示例#2
0
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages( )
        {
            if ( this.Device.IsOffline ) {
                throw new IOException ( "Device is offline" );
            }

            PackageManagerReceiver pmr = new PackageManagerReceiver ( this.Device, this );
            this.Device.ExecuteShellCommand ( PM_LIST_FULL, pmr );
        }