Form2.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using UfidaToTempDb;
  11. namespace WindowsFormsApplication1
  12. {
  13. public delegate void DelTR(BaseTrans TR);
  14. public partial class Form2 : Form
  15. {
  16. private DelTR _del;
  17. public Form2(DelTR del)
  18. {
  19. this._del = del;
  20. InitializeComponent();
  21. }
  22. private void button1_Click(object sender, EventArgs e)
  23. {
  24. _del(new TransRdrecord09());
  25. //this.Close();
  26. }
  27. private void button2_Click(object sender, EventArgs e)
  28. {
  29. _del(new TransRdrecord01());
  30. //this.Close();
  31. }
  32. private void button3_Click(object sender, EventArgs e)
  33. {
  34. _del(new TransRdrecord11());
  35. //this.Close();
  36. }
  37. private void button4_Click(object sender, EventArgs e)
  38. {
  39. _del(new TransRdrecord08());
  40. }
  41. }
  42. }