Пример #1
0
 private void buttonLeave_Click(object sender, EventArgs e)
 {
     client.LeaveChannel(textBoxChannel.Text);
     listViewChannels.Invoke((MethodInvoker) delegate
     {
         listViewChannels.Items.RemoveByKey(textBoxChannel.Text);
     });
 }
Пример #2
0
        private void leaveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            client.LeaveChannel(currentChannel.GetName());
            tabControlChannels.Invoke((MethodInvoker) delegate
            {
                tabControlChannels.TabPages.Remove(tabControlChannels.TabPages[currentChannel.GetName()]);
            });

            channels.Remove(currentChannel.GetName());
        }
Пример #3
0
 private void buttonLeave_Click(object sender, EventArgs e)
 {
     client.LeaveChannel(textBoxChannel.Text);
 }