Esempio n. 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);
        }
Esempio n. 2
0
File: Form1.cs Progetto: 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);
        }
Esempio n. 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;
        }