Beispiel #1
0
 /// <summary>
 /// Creates a new instance of <see cref="LcdDevice"/> for the given applet and device type.
 /// </summary>
 /// <param name="applet"><see cref="LcdApplet"/> that opened this device.</param>
 /// <param name="deviceType">Type of this device.</param>
 internal LcdDevice(LcdApplet applet, LcdDeviceType deviceType)
 {
     new LgLcdPermission(PermissionState.Unrestricted).Demand();
     _applet              = applet;
     _deviceType          = deviceType;
     _deviceNumber        = -1;
     _softButtonsCallback = SoftButtonsChangedCallback;
     _stopwatch           = new Stopwatch();
     ReOpen();
 }
 /// <summary>
 /// Creates a new instance of <see cref="LcdDeviceMonochrome"/> for the given applet.
 /// </summary>
 /// <param name="applet"><see cref="LcdApplet"/> that opened this device.</param>
 internal LcdDeviceQvga(LcdApplet applet)
     : base(applet, LcdDeviceType.Qvga)
 {
 }
 /// <summary>
 /// Creates a new instance of <see cref="LcdDeviceMonochrome"/> for the given applet.
 /// </summary>
 /// <param name="applet"><see cref="LcdApplet"/> that opened this device.</param>
 internal LcdDeviceMonochrome(LcdApplet applet)
     : base(applet, LcdDeviceType.Monochrome)
 {
 }