예제 #1
0
        public override void Dispose()
        {
            if (AudioEngine.Music != null)
            {
                AudioEngine.Music.Stop();
                Beatmap.Dispose();
            }

            base.Dispose();
        }
예제 #2
0
        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));
        }