Beispiel #1
0
        private static void Main(string[] args)
        {
            var conReader     = new ConsoleReader();
            var eventObserver = new EventObserver(conReader);

            Console.WriteLine("Inpute quit (case-sensitive) to stop");
            do
            {
                conReader.InputString = Console.ReadLine();
            }while (conReader.Flag);
        }
Beispiel #2
0
 public EventObserver(ConsoleReader reader)
 {
     this.DataSource = reader;
     reader.Register(this);
 }