createmeeting.cs
来自「一个用C#编写的能实现即时通讯的工具」· CS 代码 · 共 38 行
CS
38 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace client
{
public partial class createmeeting : Form
{
public createmeeting()
{
InitializeComponent();
}
private void btn_ok_Click(object sender, EventArgs e)
{
if (tbx_name.Text != "" && tbx_pwd.Text == tbx_repwd.Text)
{
room.roomname = tbx_name.Text;
room.roompwd = tbx_pwd.Text;
this.DialogResult = DialogResult.OK;
}
else
{
MessageBox.Show("请检查你的输入信息:会议名称不能为空,两次输入密码必须相等!", "错误", MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
private void btn_cancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?