public Form1() { InitializeComponent(); conversa = new Conversa(); conversa.SearchTake += new HandlerCHAT(OnTakeSearch); conversa.SearchMake += new HandlerCHAT(OnMakeSearch); conversa.SearchComplete += new HandlerCHAT(OnCompleteSearch); conversa.KeepAliveTake += new HandlerCHAT(OnTakeKeepAlive); conversa.KeepAliveMake += new HandlerCHAT(OnMakeKeepAlive); conversa.KeepAliveNull += new HandlerCHAT(OnNullKeepAlive); conversa.SayTake += new HandlerCHAT(OnTakeSay); conversa.SayMake += new HandlerCHAT(OnMakeSay); conversa.WhisperTake += new HandlerCHAT(OnTakeWhisper); conversa.WhisperMake += new HandlerCHAT(OnMakeWhisper); conversa.LeaveTake += new HandlerCHAT(OnTakeLeave); conversa.LeaveMake += new HandlerCHAT(OnMakeLeave); conversa.ReportTake += new HandlerCHAT(OnTakeReport); conversa.ReportMake += new HandlerCHAT(OnMakeReport); txtPorta.Text = Settings.Default.porta.ToString(); }