Exemplo n.º 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     fireAlarmSubject = new FireAlarmSubject();
     fireInstructions = new InstructionsObserver(fireAlarmSubject);
     beepObserver     = new BeepObserver(fireAlarmSubject);
 }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     fireAlarmSubject = new FireAlarmSubject();
     fireInstructions = new InstructionsObserver(fireAlarmSubject);
     beepObserver = new BeepObserver(fireAlarmSubject);
 }