Esempio n. 1
0
        private void EventsExample()
        {
            PrincipleCabin principle = new PrincipleCabin();

            //ClassRoom classRoom = new ClassRoom("1", principle);
            //ClassRoom classRoom1 = new ClassRoom("2", principle);
            //ClassRoom classRoom2 = new ClassRoom("3", principle);
            //ClassRoom classRoom3 = new ClassRoom("4", principle);

            principle.RingBell();
        }
Esempio n. 2
0
 public ClassRoom(string classname, PrincipleCabin princi)
 {
     this.roomNumber   = classname;
     princi.RaiseBell += princi_RaiseBell;
 }