private PortableDeviceObject CreateFunctionalObject(string id, string name, string contentType, string format)
        {
            var obj = new PortableDeviceFonctionalObject(id);

            this.InitializeInstance(obj, name, contentType, format);
            return(obj);
        }
Ejemplo n.º 2
0
        private void StartEnumerate()
        {
            lock (this.dispatcher)
            {
                PortableDeviceApiLib.IPortableDeviceContent pContent;
                this.portableDeviceClass.Content(out pContent);

                this.content = new PortableDeviceFonctionalObject("DEVICE");
                Enumerate(ref pContent, "DEVICE", this.content);

                this.RaisePropertyChanged("Content");
            }
        }