public DoctorForm(TcpConnection connection) { this.connection = connection; InitializeComponent(); doctorModel = DoctorModel.doctorModel; doctorModel.doctorform = this; doctorModel.tcpConnection = connection; DataHandler.IncomingErrorEvent += HandleError; }
public DoctorForm(TcpConnection connection) { InitializeComponent(); this._connection = connection; doctorModel = DoctorModel.doctorModel; doctorModel.doctorform = this; doctorModel.tcpConnection = connection; this.summaryUserControl = doctorSummaryUC1; DataHandler.IncomingErrorEvent += HandleError; connection.IncomingChatmessageEvent += new TcpConnection.ChatmassegeDelegate(printMessage); }
public PatientForm(TcpConnection connection) { this._connection = connection; InitializeComponent(); patientModel = PatientModel.patientModel; patientModel.patientform = this; DataHandler.IncomingErrorEvent += HandleError; //initialize event _connection.IncomingChatmessageEvent += new TcpConnection.ChatmassegeDelegate(printMessage); //TIJDELIJK STUK CODE OM MESSAGE TE TESTEN //_connection.SendString("6|TOM|TOM|Je bent een h**o"); //Console.WriteLine("Bericht versturen"); //EINDE TESTCODE }
public Login(TcpConnection connection) { this.connection = connection; InitializeComponent(); }