Ejemplo n.º 1
0
 void LoadContainer(string path)
 {
     if (File.Exists(path))
     {
         var container = ReviewContainer.Read(path);
         if (VerifyReview(container))
         {
             loadedContainer = container;
             NotificationShower.Queue($"Loaded {loadedContainer.reviewAuthor}'s review", NRNotifType.Success);
         }
         else
         {
             NotificationShower.Queue("This review was made for a different song.", NRNotifType.Fail);
         }
     }
     else
     {
         loadedContainer = new ReviewContainer();
     }
 }
Ejemplo n.º 2
0
 bool VerifyReview(ReviewContainer container)
 => container.songDesc.songID == Timeline.desc.songID;