Beispiel #1
0
        private void announceToolStripTextBox_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                System.Windows.Forms.DialogResult result = MessageBox.Show("ANNOUNCE: " + this.announceToolStripTextBox.Text, "Confirm Announcement", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);

                if (result == DialogResult.OK)
                {
                    Conference.ChatCommands(null, "/announce", this.announceToolStripTextBox.Text);
                }

                this.announceToolStripTextBox.Clear();
                this.rtbxLog.Focus();
            }
        }