Represents a full irc-connection with channel management and internal address list.
This class uses all classes of IrcSharp to manage an irc connection.
Inheritance: IrcClient
コード例 #1
0
ファイル: GUIIrcConnection.cs プロジェクト: hapm/IrcShark
 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);
 }
コード例 #2
0
 public ConnectionAddedEventArgs(IrcConnection con)
 {
     ConnectionValue = con;
 }
コード例 #3
0
ファイル: StatusPanel.cs プロジェクト: hapm/IrcShark
 private void NewConnectionMenuItem_Click(object sender, EventArgs e)
 {
     IrcConnection con = new IrcConnection();
     IrcShark.Connections.Add(con);
 }
コード例 #4
0
 public ConnectionRemovedEventArgs(IrcConnection con)
 {
     ConnectionValue = con;
 }