DoctorForm.cs 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. namespace FietsClient
  11. {
  12. public partial class DoctorForm : Form
  13. {
  14. private TcpConnection connection;
  15. private DoctorModel doctorModel;
  16. public DoctorForm(TcpConnection connection)
  17. {
  18. this.connection = connection;
  19. InitializeComponent();
  20. doctorModel = DoctorModel.doctorModel;
  21. doctorModel.doctorform = this;
  22. doctorModel.tcpConnection = connection;
  23. DataHandler.IncomingErrorEvent += HandleError;
  24. }
  25. private void HandleError(string error)
  26. {
  27. switch (error)
  28. {
  29. default:
  30. break;
  31. }
  32. }
  33. private void Form1_Load(object sender, EventArgs e)
  34. {
  35. }
  36. }
  37. }