public override void Dispose() { if (AudioEngine.Music != null) { AudioEngine.Music.Stop(); Beatmap.Dispose(); } base.Dispose(); }
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) { switch (args.Key) { case Key.Enter: footer.StartButton.TriggerClick(); return(true); case Key.Delete: if (Beatmap != null) { Beatmap.Dispose(); database.Delete(Beatmap.BeatmapSetInfo); } return(true); } return(base.OnKeyDown(state, args)); }