public NetworkInterfaceWindow(IrcNetwork network) { InitializeComponent(); this.Network = network; this.DataContext = network; Network.messageReceived += new EventHandler(Network_messageReceived); this.inputBox.Focus(); }
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(); }
public IrcEventArgs(IrcNetwork network) { this.Network = network; }
public Channel(IrcNetwork network, string name) { _network = network; _name = name; }