Example #1
0
 public static ISyncSelectionsModelFactory ResolveISyncSelectionsModelFactory()
 {
     if (syncSelectionsModelFactory == null)
     {
         syncSelectionsModelFactory = new SyncSelectionsModelFactory();
     }
     return(syncSelectionsModelFactory);
 }
 public static ISyncSelectionsModelFactory ResolveISyncSelectionsModelFactory()
 {
     if (syncSelectionsModelFactory == null)
     {
         syncSelectionsModelFactory = new SyncSelectionsModelFactory();
     }
     return syncSelectionsModelFactory;
 }
Example #3
0
 public static IMusicSyncSource ResolveITunesMusicSyncSource()
 {
     if (iTunesMusicSource == null)
     {
         ISyncSelectionsModelFactory factory    = ResolveISyncSelectionsModelFactory();
         IFileSystemHelper           fileHelper = ResolveIFileSystemHelper();
         iTunesMusicSource = new ITunesMusicSyncSource(factory, fileHelper);
     }
     return(iTunesMusicSource);
 }
Example #4
0
 public static IMusicSyncSource ResolveWindowsLibraryMusicSyncSource()
 {
     if (windowsLibraryMusicSource == null)
     {
         ISyncSelectionsModelFactory modelFactory  = ResolveISyncSelectionsModelFactory();
         IWindowsLibraryFactory      winLibFactory = ResolveIWindowsLibraryFactory();
         IFileSystemHelper           fileHelper    = ResolveIFileSystemHelper();
         windowsLibraryMusicSource = new WindowsLibraryMusicSyncSource(modelFactory, fileHelper, winLibFactory);
     }
     return(windowsLibraryMusicSource);
 }
Example #5
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);
 }
Example #6
0
        public static IZmdbSyncSource ResolveZmdbSyncSource(IDevice device)
        {
            ISyncSelectionsModelFactory factory = ResolveISyncSelectionsModelFactory();

            return(new ZmdbSyncSource(device, factory, ResolveIFileSystemHelper()));
        }