public GUIIrcConnection(IrcCloneSharkExtension ext, IrcConnection baseCon) { ExtensionValue = ext; BaseConnectionValue = baseCon; StatusValue = new StatusWindow(this); SwitchStripValue = new WindowSwitchToolStrip(this); MainForm.SwitchBar.Controls.Add(SwitchStripValue); StatusValue.Show(); ChannelWindowsValue = new Dictionary<String, ChannelWindow>(); QueryWindowsValue = new QueryWindowList(); BaseConnectionValue.Channels.Joined += new JoinedEventHandler(Channels_Joined); BaseConnectionValue.Channels.Parted += new PartedEventHandler(Channels_Parted); BaseConnectionValue.PrivateMessageReceived += new PrivateMessageReceivedEventHandler(Client_PrivateMessageReceived); }
public ConnectionAddedEventArgs(IrcConnection con) { ConnectionValue = con; }
private void NewConnectionMenuItem_Click(object sender, EventArgs e) { IrcConnection con = new IrcConnection(); IrcShark.Connections.Add(con); }
public ConnectionRemovedEventArgs(IrcConnection con) { ConnectionValue = con; }