Guest User

Untitled

a guest
Nov 12th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. namespace J13_Rouparia_CS
  2. {
  3. public partial class frmMain : Form
  4. {
  5. public static int LocPesq;
  6. public static string peqNume;
  7. public static string peqArti;
  8.  
  9. public void UpdatePesquisa()
  10. {
  11. switch (LocPesq)
  12. {
  13. case 1:
  14. txtSRnum.Text = peqNume;
  15. txtSRartigo.Text = peqArti;
  16. break;
  17. case 2:
  18. txtELnum.Text = peqNume;
  19. txtELartigo.Text = peqArti;
  20. break;
  21. case 3:
  22. txtSLnum.Text = peqNume;
  23. txtSLartigo.Text = peqArti;
  24. break;
  25. }
  26. }
  27. }
  28. }
  29.  
  30. public static void UpdatePesquisa()
  31. {
  32. switch (LocPesq)
  33. {
  34. case 1:
  35. txtSRnum.Text = peqNume;
  36. txtSRartigo.Text = peqArti;
  37. break;
  38. case 2:
  39. txtELnum.Text = peqNume;
  40. txtELartigo.Text = peqArti;
  41. break;
  42. case 3:
  43. txtSLnum.Text = peqNume;
  44. txtSLartigo.Text = peqArti;
  45. break;
  46. }
  47. }
Add Comment
Please, Sign In to add comment