public static InternationalMusicLibrary GetInternationalMusicLibraryInstance()
 {
     if (instance == null)
     {
         lock (obj)
         {
             if (instance == null)
             {
                 instance = new InternationalMusicLibrary();
             }
         }
     }
     return(instance);
 }
示例#2
0
 public AppMusicLibrary()
 {
     songs = new List <Song>();
     internationMusicLibrary = InternationalMusicLibrary.GetInternationalMusicLibraryInstance();
     internationMusicLibrary.Subscribe(this);
 }