示例#1
0
        private void StartEnumerate(IObjectEnumerateHelper enumHelper)
        {
            lock (dispatcher)
            {
                enumerateHelper = enumHelper;
                IPortableDeviceContent pContent;
                PortableDeviceClass.Content(out pContent);

                Content = new PortableDeviceFunctionalObject("DEVICE");
                Enumerate(ref pContent, "DEVICE", Content, enumerateHelper);

                RaisePropertyChanged("Content");
            }
        }
 public bool Exists(string path, PortableDeviceFunctionalObject storage)
 {
     return Find(path, storage).Any();
 }