Пример #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     fireAlarmSubject = new FireAlarmSubject();
     fireInstructions = new InstructionsObserver(fireAlarmSubject);
     beepObserver     = new BeepObserver(fireAlarmSubject);
 }
Пример #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     fireAlarmSubject = new FireAlarmSubject();
     fireInstructions = new InstructionsObserver(fireAlarmSubject);
     beepObserver = new BeepObserver(fireAlarmSubject);
 }