// Constructor /// <summary> /// Default constructor. Creates pinpad display facade. /// </summary> /// <param name="communication"></param> public PinpadDisplay (PinpadCommunication communication) { if (communication == null) { throw new ArgumentNullException("PinpadCommunication cannot be null."); } this.communication = communication; }
// Constructor /// <summary> /// Pinpad information. /// </summary> /// <param name="communication">Pinpad communication.</param> public PinpadInfos(PinpadCommunication communication) { this.communication = communication; }
// Constructor: /// <summary> /// Default constructor. /// </summary> /// <param name="communication">Pinpad communication, through which is possible to communicate with the pinpad.</param> /// <param name="infos">Pinpad informations.</param> /// <param name="display">Pinpad display, through which is possible to use with the display operations in data picker.</param> public PinpadKeyboard(PinpadCommunication communication, IPinpadInfos infos, IPinpadDisplay display) { this.Communication = communication; this.Informations = infos; this.DataPicker = new DataPicker(this, infos, display); }