public Beeper(Metronome metronome, String soundFileName)
     : base(metronome)
 {
     this.soundFileName = soundFileName;
     soundPlayer = new SoundPlayer();
     soundPlayer.SoundLocation = soundFileName;
 }
Exemple #2
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);
 }
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);
     //mainThread = new Thread(mainMetronome.start); //Can't go in FormLoad once stopped can't be started again.
 }
 public Counter(Metronome metronome, NumericUpDown spinBox)
     : base(metronome)
 {
     this.spinBox = spinBox;
 }
 public TimeDisplay(Metronome metronome, ListBox listBox)
     : base(metronome)
 {
     this.listBox = listBox;
 }
 public MetronomeObserver(Metronome metronome)
 {
     this.metronome = metronome;
     metronome.metronomeEvent += new Metronome.metronomeEventHandler(onMetronomeEvent);
 }
Exemple #7
0
 public TTimeDisplay(Metronome metronome, ListBox listBox)
     : base(metronome)
 {
     this.listBox = listBox;
 }
Exemple #8
0
 public TCounter(Metronome metronome, NumericUpDown spinBox)
     : base(metronome)
 {
     this.spinBox = spinBox;
 }
Exemple #9
0
 public MetronomeObserver(Metronome metronome)
 {
     this.metronome            = metronome;
     metronome.metronomeEvent += new Metronome.metronomeEventHandler(onMetronomeEvent);
 }