Exemplo n.º 1
0
 public PaymentTerminal()
 {
     paymentEvent    = new PaymentEvent();
     dispenser       = new Dispenser();
     dataAcquisition = DataAcquisition.Instance;
     paymentEvent.Subscribe(dispenser);
     paymentEvent.Subscribe(dataAcquisition);
 }
Exemplo n.º 2
0
 public PaymentTerminal(Dispenser dispenser)
 {
     this.dispenser = dispenser;
     paymentEvent   = new PaymentEvent();
     paymentEvent.Subscribe(dispenser);
     data = Data.Instance;
     paymentEvent.Subscribe(data);
     data.Collection = dispenser.Collection;
 }