예제 #1
0
 public static IPictureSyncSource ResolvePhotosSyncSource()
 {
     if (photoSource == null)
     {
         ISyncSelectionsModelFactory modelFactory  = ResolveISyncSelectionsModelFactory();
         IWindowsLibraryFactory      winLibFactory = ResolveIWindowsLibraryFactory();
         IFileSystemHelper           fileHelper    = ResolveIFileSystemHelper();
         photoSource = new WindowsLibraryPictureSyncSource(modelFactory, fileHelper, winLibFactory);
     }
     return(photoSource);
 }
예제 #2
0
        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;
        }
예제 #3
0
 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;
 }
예제 #4
0
 public static IPictureSyncSource ResolvePhotosSyncSource()
 {
     if (photoSource == null)
     {
         ISyncSelectionsModelFactory modelFactory = ResolveISyncSelectionsModelFactory();
         IWindowsLibraryFactory winLibFactory = ResolveIWindowsLibraryFactory();
         IFileSystemHelper fileHelper = ResolveIFileSystemHelper();
         photoSource = new WindowsLibraryPictureSyncSource(modelFactory, fileHelper, winLibFactory);
     }
     return photoSource;
 }