Example #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);
        }
Example #2
0
File: Form1.cs Project: rNdm74/C-
        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);
        }
Example #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;
        }