Пример #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();
     }
 }
Пример #2
0
 bool VerifyReview(ReviewContainer container)
 => container.songDesc.songID == Timeline.desc.songID;