Exemplo n.º 1
0
        static void Main(string[] args)
        {
            DataExtractor extractor = new DataExtractor();
            DataReceiver1 reciever1 = new DataReceiver1(extractor);
            DataReceiver2 reciever2 = new DataReceiver2(extractor);

            while (extractor.Data != "")
            {
                extractor.Data = Console.ReadLine();
            }
        }
Exemplo n.º 2
0
 public DataReceiver1(DataExtractor dataExtr)
 {
     dataExtr.dataRecievedEvent += updateDataHandler;
 }