public NetworkInterfaceWindow(IrcNetwork network)
 {
     InitializeComponent();
     this.Network = network;
     this.DataContext = network;
     Network.messageReceived += new EventHandler(Network_messageReceived);
     this.inputBox.Focus();
 }
示例#2
0
 public void Connect(string host, int port, string user, string nick)
 {
     Networks = new ObservableCollection<IrcNetwork>();
     IrcNetwork network = new IrcNetwork(host, port, user, nick);
     Networks.Add(network);
     onConnect(this, new IrcEventArgs(network));
     networkToConnectTo = network;
     BackgroundWorker bgworker = new BackgroundWorker();
     bgworker.DoWork += new DoWorkEventHandler(bgworker_DoWork);
     bgworker.RunWorkerAsync();
 }
示例#3
0
 public IrcEventArgs(IrcNetwork network)
 {
     this.Network = network;
 }
示例#4
0
 public Channel(IrcNetwork network, string name)
 {
     _network = network;
     _name = name;
 }