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 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);

        }