private void ConfirmButton_Click(object sender, RoutedEventArgs e) { if (_paymentIdLen > 6 && _paymentIdLen <= 13) { TransactionInfo.BillRequest.PaymentId = PaymentIdBox.Text; TransactionInfo.GoToPage(Pages.InputBillRequestIdPage); } else { LabelMessage.Content = "شناسه پرداخت وارد شده صحیح نمی باشد"; PaymentIdBox.Focus(); } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { PaymentIdBox.Focus(); }