📄 createmeeting.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -