Пример #1
0
        public SynchronizeCommand(Options options, PortableDeviceCollection portableDeviceCollection, IUserInterface userInterface, ApplicationInformation applicationInformation)
        {
            Contract.Assert(options != null);
            Contract.Assert(applicationInformation != null);
            Contract.Assert(portableDeviceCollection != null);
            Contract.Assert(userInterface != null);

            _options = options;
            _applicationInformation   = applicationInformation;
            _portableDeviceCollection = portableDeviceCollection;
            _userInterface            = userInterface;
        }
 private static PortableDeviceCollection CreatePortableDeviceCollectionFromApplicationInformation(ApplicationInformation applicationInformation)
 {
     PortableDeviceCollection.CreateInstance(applicationInformation.Name, applicationInformation.MajorVersionNumber, applicationInformation.MinorVersionNumber);
     PortableDeviceCollection.Instance.AutoConnectToPortableDevice = false;
     return(PortableDeviceCollection.Instance);
 }