Пример #1
0
 private void UpdateOSCommandBindingsTPM(TPMTextBox textBox)
 {
     try
     {
         _tpmPanel.AddOrUpdateOSCommandBinding(GetSwitch(textBox), textBox.Bill.OSCommandObject);
     }
     catch (Exception ex)
     {
         Common.ShowErrorMessageBox(ex);
     }
 }
Пример #2
0
        private void UpdateKeyBindingProfileSimpleKeyStrokes(TPMTextBox textBox)
        {
            try
            {
                KeyPressLength keyPressLength;
                if (!textBox.Bill.ContainsKeyPress() || textBox.Bill.KeyPress.KeyPressSequence.Count == 0)
                {
                    keyPressLength = KeyPressLength.ThirtyTwoMilliSec;
                }
                else
                {
                    keyPressLength = textBox.Bill.KeyPress.GetLengthOfKeyPress();
                }

                _tpmPanel.AddOrUpdateKeyStrokeBinding(GetSwitch(textBox), textBox.Text, keyPressLength);
            }
            catch (Exception ex)
            {
                Common.ShowErrorMessageBox(ex);
            }
        }
Пример #3
0
 public BillTPM(TPMTextBox textBox, TPMPanelSwitchOnOff key)
 {
     TextBox = textBox;
     _key    = key;
 }