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(); } }
bool VerifyReview(ReviewContainer container) => container.songDesc.songID == Timeline.desc.songID;