public IRCBot(IRCClientConsole client) { Client = client; IRC = client.IRC; Info = client.Info; IRC.Message += irc_Message; IRC.WhoisResult += irc_WhoisResult; IRC.UserJoined += irc_UserJoined; }
public IRC(string server, int port, string nickname, string username, string realname, bool invisible) { Info = new IRCInfo() { Server = server, Port = port, Nickname = nickname, Username = username, Realname = realname, Invisible = invisible }; }
public IRCClientForm(IRCInfo info) { InitializeComponent(); Icon = ShareXResources.Icon; ((ToolStripDropDownMenu)tsmiColors.DropDown).ShowImageMargin = false; Info = info; pgSettings.SelectedObject = Info; IRC = new IRC(Info); IRC.Disconnected += IRC_Disconnected; IRC.Output += IRC_Output; IRC.Message += IRC_Message; IRC.UserJoined += IRC_UserJoined; }
public IRCClientForm(IRCInfo info) { InitializeComponent(); rtbOutput.AddContextMenu(); tsmiColors.HideImageMargin(); tabManager = new TabManager(tcMessages); Info = info; pgSettings.SelectedObject = Info; IRC = new IRC(Info); IRC.Disconnected += IRC_Disconnected; IRC.Output += IRC_Output; IRC.ErrorOutput += IRC_ErrorOutput; IRC.Message += IRC_Message; IRC.UserJoined += IRC_UserJoined; }
private static void Main(string[] args) { IRCInfo info; if (File.Exists(DefaultSettingsPath)) { info = Settings.Load<IRCInfo>(DefaultSettingsPath); } else { info = new IRCInfo(); } IRCClientConsole client = new IRCClientConsole(info); IRCBot bot = new IRCBot(client); bot.Start(); Settings.Save(info, DefaultSettingsPath); }
private static void Main(string[] args) { IRCInfo info; if (File.Exists(DefaultSettingsPath)) { info = Settings.Load <IRCInfo>(DefaultSettingsPath); } else { info = new IRCInfo(); } IRCClientConsole client = new IRCClientConsole(info); IRCBot bot = new IRCBot(client); bot.Start(); Settings.Save(info, DefaultSettingsPath); }
public IRC(IRCInfo info) { Info = info; }
public IRC() { Info = new IRCInfo(); }