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"); } }
private PortableDeviceObject CreateFunctionalObject(string id, string name, string contentType, string format) { var obj = new PortableDeviceFonctionalObject(id); this.InitializeInstance(obj, name, contentType, format); return obj; }