frmPrescQrCode.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Data.SqlTypes;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using PTMedicalInsurance.Common;
  12. using PTMedicalInsurance.Helper;
  13. using Newtonsoft.Json.Linq;
  14. using PTMedicalInsurance.Forms;
  15. using PTMedicalInsurance.Variables;
  16. namespace PTMedicalInsurance.Forms
  17. {
  18. public partial class frmPrescQrCode : Form
  19. {
  20. public frmPrescQrCode()
  21. {
  22. InitializeComponent();
  23. this.StartPosition = FormStartPosition.CenterParent;
  24. }
  25. private void btn_Cancel_Click(object sender, EventArgs e)
  26. {
  27. DialogResult = DialogResult.Cancel;
  28. }
  29. private void frmPrescQrCode_Shown(object sender, EventArgs e)
  30. {
  31. tb_QrCode.Focus();
  32. }
  33. private void btn_Ok_Click(object sender, EventArgs e)
  34. {
  35. DialogResult = DialogResult.OK;
  36. }
  37. private void tb_QrCode_TextChanged(object sender, EventArgs e)
  38. {
  39. DialogResult = DialogResult.OK;
  40. }
  41. }
  42. }