Ejemplo n.º 1
0
 public MainPage()
 {
     this.InitializeComponent();
     MyTitle.Text = Title;
     SerialPort   = new BluetoothSerialLib.BluetoothSerial();
     InitializeRfcommDeviceService();
     Keypad = SerialPort.Keypad;
     //SetupKPadEventHandlers();
     SetupDelegates();
 }
Ejemplo n.º 2
0
        public KeyFunctions(KeypadUWPLib.Keypad keypad)
        {
            Keypresses = new Dictionary <char, Keypress>();

            foreach (char ch in KeypadUWPLib.KeypadEventArgs.ValidKeys)
            {
                Keypresses.Add(ch, null);
            }

            Keypad          = keypad;
            Keypad.KeyDown += Keypad_KeyDown;
        }
 public BluetoothSerial()
 {
     //InitializeRfcommDeviceService();
     Keypad = new KeypadUWPLib.Keypad();
     ////Specific handlers
     //Keypad.KeyDown += Keypad_KeyDown;
     //Keypad.KeyUp += Keypad_KeyUp;
     //Keypad.KeyHolding += Keypad_KeyHolding;
     ////Common handlers
     //Keypad.KeyDown += Keypad_Keys;
     //Keypad.KeyUp += Keypad_Keys;
     //Keypad.KeyHolding += Keypad_Keys;
 }