示例#1
0
        private void GameOver()
        {
            timer1.Stop();
            GameOver     gameOver = new GameOver(notesDoc.Hits);
            DialogResult result   = gameOver.ShowDialog();

            if (result == DialogResult.OK)
            {
                notesDoc        = new NotesDoc();
                timer1.Interval = 80;
                CurrentNote     = 0;
                timerForNote    = 0;
                timer1.Start();
            }
            if (result == DialogResult.Cancel)
            {
                this.Close();
            }
        }
示例#2
0
        public GameOn(string SongName)
        {
            ChosenSongList    = SongName.Split('.').ToList();
            CurrentNote       = 0;
            CurrentNoteString = null;
            timerForNote      = 0;
            EdenDva           = true;
            notesDoc          = new NotesDoc();
            timer1            = new Timer();
            timer1.Start();
            tune   = 0;
            Paused = false;

            player  = new WindowsMediaPlayer();
            player2 = new WindowsMediaPlayer();

            DoubleBuffered = true;
            InitializeComponent();
        }