Esempio n. 1
0
 public PaymentTerminal()
 {
     paymentEvent    = new PaymentEvent();
     dispenser       = new Dispenser();
     dataAcquisition = DataAcquisition.Instance;
     paymentEvent.Subscribe(dispenser);
     paymentEvent.Subscribe(dataAcquisition);
 }
Esempio 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;
 }