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