コード例 #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);
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: 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);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: nickdm26/OOSD
        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;
        }