private void SetupEvents() { __ChannelDidNotExist = new ServerChatEventHandler(ChannelDidNotExist); __ChannelListReceived = new ChannelListEventHandler(ChannelListReceived); __ChannelWasFull = new ServerChatEventHandler(ChannelWasFull); __ChannelWasRestricted = new ServerChatEventHandler(ChannelWasRestricted); __ClientCheckFailed = new ClientCheckFailedEventHandler(ClientCheckFailed); __ClientCheckPassed = new EventHandler(ClientCheckPassed); __CommandSent = new InformationEventHandler(CommandSent); __Connected = new EventHandler(Connected); __Disconnected = new EventHandler(Disconnected); __EnteredChat = new EnteredChatEventHandler(EnteredChat); __Error = new ErrorEventHandler(Error); __Information = new InformationEventHandler(Information); __InformationReceived = new ServerChatEventHandler(InformationReceived); __JoinedChannel = new ServerChatEventHandler(JoinedChannel); __LoginFailed = new LoginFailedEventHandler(LoginFailed); __LoginSucceeded = new EventHandler(LoginSucceeded); __MessageSent = new ChatMessageEventHandler(MessageSent); __ServerBroadcast = new ServerChatEventHandler(ServerBroadcast); __ServerErrorReceived = new ServerChatEventHandler(m_client_ServerErrorReceived); __UserEmoted = new ChatMessageEventHandler(UserEmoted); __UserFlagsChanged = new UserEventHandler(UserFlagsChanged); __UserJoined = new UserEventHandler(UserJoined); __UserLeft = new UserEventHandler(UserLeft); __UserShown = new UserEventHandler(UserShown); __UserSpoke = new ChatMessageEventHandler(UserSpoke); __WardenUnhandled = new EventHandler(WardentUnhandled); __WhisperReceived = new ChatMessageEventHandler(WhisperReceived); __WhisperSent = new ChatMessageEventHandler(WhisperSent); }
protected virtual void OnInformation(InformationEventArgs e) { InformationEventHandler handler = Information; if (handler != null) { handler(this, e); } }