Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            fireMonitorSubject = new FireMonitorSubject();

            InstructionsFireObserver instructionsFireObserver = new InstructionsFireObserver(fireMonitorSubject);
            AlarmBellFireObserver alarmBellFireObserver = new AlarmBellFireObserver(fireMonitorSubject);
        }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            fireMonitorSubject = new FireMonitorSubject();

            InstructionsFireObserver instructionsFireObserver = new InstructionsFireObserver(fireMonitorSubject);
            AlarmBellFireObserver    alarmBellFireObserver    = new AlarmBellFireObserver(fireMonitorSubject);
        }