protected void LoadBook(ScoreBook book) { ScoreBook = book; NoteView.LoadScore(book.Score); NoteViewScrollBar.Value = NoteViewScrollBar.GetMaximumValue(); NoteViewScrollBar.Minimum = -Math.Max(NoteView.UnitBeatTick * 4 * 20, NoteView.Notes.GetLastTick()); UpdateThumbHeight(); SetText(book.Path); LastExportData = null; if (!string.IsNullOrEmpty(book.Path)) { SoundConfiguration.Default.ScoreSound.TryGetValue(book.Path, out CurrentMusicSource); } else { CurrentMusicSource = null; } }