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); }
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; }