/// <summary> /// Handles the Click event of ToolStripMenuItem. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The event arguments.</param> private void JoinChannelToolStripMenuItem_Click(object sender, EventArgs e) { using (ChannelDialog dialog = new ChannelDialog()) { if (dialog.ShowDialog() == DialogResult.OK) { this.CurrentTab.Marshal.Send(this.CurrentTab, new JoinMessage(dialog.ChannelName)); } } }