Example #1
0
 static void Main(string[] args)
 {
     Subject subject = new Subject();
     Observer Observer = new Observer(subject, "Center", "\t\t");
     Observer observer2 = new Observer(subject, "Right", "\t\t\t\t");
     subject.Go();
     Console.Read();
 }
Example #2
0
        static void Main(string[] args)
        {
            Subject  subject   = new Subject();
            Observer observer  = new Observer(subject, "Center", "\t\t");
            Observer observer2 = new Observer(subject, "Right", "\t\t\t\t");

            subject.Go();
        }
Example #3
0
        static void Main(string[] args)
        {
            Subject  subject   = new Subject();
            Observer observer  = new Observer(subject, "Center", "\t\t");
            Observer observer2 = new Observer(subject, "Right", "\t\t\t\t");

            subject.Go();

            // Wait for user
            Console.Read();
        }