public void Init(IRCSettings settings) { Settings = settings; IRC = new IRC(Settings); IRC.Output += IRC_Output; IRC.ErrorOutput += IRC_ErrorOutput; IRC.UserJoined += IRC_UserJoined; IRC.Disconnected += IRC_Disconnected; }
public IRCClientForm(IRCSettings settings) { InitializeComponent(); rtbOutput.AddContextMenu(); tsmiColors.HideImageMargin(); tabManager = new TabManager(tcMessages); Settings = settings; pgSettings.SelectedObject = Settings; IRC = new IRC(Settings); IRC.Disconnected += IRC_Disconnected; IRC.Output += IRC_Output; IRC.ErrorOutput += IRC_ErrorOutput; IRC.Message += IRC_Message; IRC.UserJoined += IRC_UserJoined; }