public void Join(IrcMessage msg) { Dispatcher.Invoke(() => { var channel = new IrcChannelTabItem(msg.Trailing); channel.UserInput += ChannelUserInput; ChannelsTabControl.Items.Add(channel); channel.Focus(); channel.PrintLine("Now talking on " + channel.Name); }); }
public IrcServerTabItem(IrcServerData data) { Data = data; InitializeComponent(); Header = Data.ServerName; metaChannel = new IrcChannelTabItem(Data.ServerName); metaChannel.UserInput += ChannelUserInput; ChannelsTabControl.Items.Add(metaChannel); metaChannel.Focus(); }