private void _objAPI_StatusCallback(ASB dwStatus) { printStatus = dwStatus; if ((dwStatus & ASB.ASB_PRINT_SUCCESS) == ASB.ASB_PRINT_SUCCESS) { isFinish = true; } else if ((dwStatus & ASB.ASB_NO_RESPONSE) == ASB.ASB_NO_RESPONSE || (dwStatus & ASB.ASB_COVER_OPEN) == ASB.ASB_COVER_OPEN || (dwStatus & ASB.ASB_AUTOCUTTER_ERR) == ASB.ASB_AUTOCUTTER_ERR || (dwStatus & ASB.ASB_PAPER_END) == ASB.ASB_PAPER_END) { isFinish = true; cancelErr = true; } }
public MainPage() { this.InitializeComponent(); //Load(); KeyboardAccelerator GoBack = new KeyboardAccelerator(); GoBack.Key = VirtualKey.GoBack; GoBack.Invoked += BackInvoked; KeyboardAccelerator AltLeft = new KeyboardAccelerator(); AltLeft.Key = VirtualKey.Left; AltLeft.Invoked += BackInvoked; this.KeyboardAccelerators.Add(GoBack); this.KeyboardAccelerators.Add(AltLeft); // ALT routes here AltLeft.Modifiers = VirtualKeyModifiers.Menu; ASB.Focus(FocusState.Programmatic); }
public static void setValuesForASB(ASB.AutoSuggestBox autoSuggestBox, decimal selectedValue, string Text) { autoSuggestBox.SelectedValue = selectedValue.ToString(); autoSuggestBox.Text = Text; }