Exemplo n.º 1
0
        public override void Dispose()
        {
            if (AudioEngine.Music != null)
            {
                AudioEngine.Music.Stop();
                Beatmap.Dispose();
            }

            base.Dispose();
        }
Exemplo n.º 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));
        }