public frmGroupChat() { InitializeComponent(); messages = new Messages(); messages.MessageQueued += new EventHandler(Messages_MessageQueued); client = new Client(); client.MessageReceived += new EventHandler<MessageEventArgs>(client_MessageReceived); }
public ChatWindow(Client _client, string _Name, IPEndPoint _RemoteEP, long _ID) { InitializeComponent(); client = _client; Name = _Name; RemoteEP = _RemoteEP; ID = _ID; Title = Name + " via " + RemoteEP; }