private void ConfirmButton_Click(object sender, RoutedEventArgs e) { if (_billIdLen > 6 && _billIdLen <= 13) { TransactionInfo.BillRequest.BillId = BillIdBox.Text; TransactionInfo.GoToPage(Pages.ConfirmPaymentPage); } else { LabelMessage.Content = "شناسه قبض وارد شده صحیح نمی باشد"; BillIdBox.Focus(); } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { BillIdBox.Focus(); }