예제 #1
0
 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);
     });
 }
예제 #2
0
        public IrcServerTabItem(IrcServerData data)
        {
            Data = data;

            InitializeComponent();
            Header = Data.ServerName;
            metaChannel = new IrcChannelTabItem(Data.ServerName);
            metaChannel.UserInput += ChannelUserInput;
            ChannelsTabControl.Items.Add(metaChannel);
            metaChannel.Focus();
        }