private void UpdateOSCommandBindingsTPM(TPMTextBox textBox) { try { _tpmPanel.AddOrUpdateOSCommandBinding(GetSwitch(textBox), textBox.Bill.OSCommandObject); } catch (Exception ex) { Common.ShowErrorMessageBox(ex); } }
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); } }
public BillTPM(TPMTextBox textBox, TPMPanelSwitchOnOff key) { TextBox = textBox; _key = key; }