So I'm using a reference called Fluent.Toc in C# for AIM. Well, I have separate classes to handle each of the large functions the bot processes. A class for Math functions, a class for Trivia functions and a class for an 8 ball function. The toc class has those event handlers.
TOCClient.Message += new MessageEventHandler(TOCClient_Message);
then... I have my event..
protected void TOCClient_Message(object sender, MessageEventArgs MsgEventArgs)
{
}
Well, my question is, how would I let my other classes access my variable "MsgEventArgs"? I need to find out what the message says from the other classes.
Thanks!
EDIT: Would I end up putting the event handler in each of my classes as well?