// Constructor /// <summary> /// Build a data picker with a reference to keyboard and display. /// </summary> /// <param name="keyboard"><seealso cref="IPinpadKeyboard"/> implementation.</param> /// <param name="infos"><seealso cref="IPinpadInfos"/> implementation.</param> /// <param name="display"><seealso cref="IPinpadDisplay"/> implementation.</param> public DataPicker(IPinpadKeyboard keyboard, IPinpadInfos infos, IPinpadDisplay display) { this._keyboard = keyboard; this._display = display; this.DataPickerKeys = infos.GetUpAndDownKeys(); }
// 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); }