public static IPictureSyncSource ResolvePhotosSyncSource() { if (photoSource == null) { ISyncSelectionsModelFactory modelFactory = ResolveISyncSelectionsModelFactory(); IWindowsLibraryFactory winLibFactory = ResolveIWindowsLibraryFactory(); IFileSystemHelper fileHelper = ResolveIFileSystemHelper(); photoSource = new WindowsLibraryPictureSyncSource(modelFactory, fileHelper, winLibFactory); } return(photoSource); }
private void CalculatePhotoSyncSelections(IPictureSyncSource source, ISyncRules rules, SqmSyncContentStream stream) { uint num = 0; uint num2 = 0; if (rules.IsPhotoVideoSyncEnabled) { int num3; if (rules.SyncAllPhotosVideos) { num = (uint)source.PhotoVideoAlbums.Options.Count <ISyncSelectionOption>(); } else { num = (uint)this.CountTreeItemsFullySelected(source.PhotoVideoAlbums); } num2 = (uint)this.CountTreeItemsSelected(source.PhotoVideoAlbums, out num3); } stream.PhotoTreeSelectedCount = num; stream.PhotoFolderSelectedCount = num2; }
private void CalculatePhotoSyncSelections(IPictureSyncSource source, ISyncRules rules, SqmSyncContentStream stream) { uint num = 0; uint num2 = 0; if (rules.IsPhotoVideoSyncEnabled) { int num3; if (rules.SyncAllPhotosVideos) { num = (uint) source.PhotoVideoAlbums.Options.Count<ISyncSelectionOption>(); } else { num = (uint) this.CountTreeItemsFullySelected(source.PhotoVideoAlbums); } num2 = (uint) this.CountTreeItemsSelected(source.PhotoVideoAlbums, out num3); } stream.PhotoTreeSelectedCount = num; stream.PhotoFolderSelectedCount = num2; }
public static IPictureSyncSource ResolvePhotosSyncSource() { if (photoSource == null) { ISyncSelectionsModelFactory modelFactory = ResolveISyncSelectionsModelFactory(); IWindowsLibraryFactory winLibFactory = ResolveIWindowsLibraryFactory(); IFileSystemHelper fileHelper = ResolveIFileSystemHelper(); photoSource = new WindowsLibraryPictureSyncSource(modelFactory, fileHelper, winLibFactory); } return photoSource; }