Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // Note the Form being passed to the metronome…It comes in handy
            mainMetronome = new Metronome(1000, this);

            mainBeeper      = new Beeper(mainMetronome, "blip1.wav");
            mainCounter     = new Counter(mainMetronome, nUpDown);
            mainTimeDisplay = new TimeDisplay(mainMetronome, lTime);
        }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // Note the Form being passed to the metronome…It comes in handy
            mainMetronome = new Metronome(1000, this);

            mainBeeper = new Beeper(mainMetronome, "blip1.wav");
            mainCounter = new Counter(mainMetronome, nUpDown);
            mainTimeDisplay = new TimeDisplay(mainMetronome, lTime);
        }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            mainMetronome   = new Metronome(1000, this);
            mainBeeper      = new Beeper(mainMetronome, "blip1.wav");
            mainCounter     = new Counter(mainMetronome, numericUpDown1);
            mainTimeDisplay = new TimeDisplay(mainMetronome, listBox1);

            btnStart.Enabled = true;
            btnStop.Enabled  = false;
        }