Represents a dialog that accepts a channel name.
Inheritance: System.Windows.Forms.Form
コード例 #1
0
ファイル: MainForm.cs プロジェクト: rastating/yaircc
 /// <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));
         }
     }
 }