Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public delegate void SendFromForm1(string Text);
  2. public SendFromForm1 Form1Sender;
  3. private void doctorUpdateBtn_Click(object sender, EventArgs e)
  4. {
  5. try
  6. {
  7.  
  8. UpdateDoctor DocUpdate = new UpdateDoctor();
  9. this.Form1Sender(Global.DoctorUser);
  10. DocUpdate.ShowDialog();
  11.  
  12. }
  13. catch (Exception ex)
  14. {
  15. MessageBox.Show(ex.ToString());
  16. }
  17. }
  18.  
  19. private void UpdateDoctor_Load(object sender, EventArgs e)
  20. {
  21. try
  22. {
  23. Form1 abc = new Form1();
  24. abc.Form1Sender = new Form1.SendFromForm1(LoadInformation);
  25. }
  26. catch (Exception ex)
  27. {
  28. MessageBox.Show(ex.ToString());
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement