📄 frmaddrecruit.vb
字号:
Public Class FrmAddRecruit
Private Sub BtnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAdd.Click
If User.Mod1 = "可读" Then
MsgBox("您无权写入记录!", MsgBoxStyle.Exclamation, "信息框")
Exit Sub
End If
If Trim(TxtRecruitName.Text) = "" Then
MsgBox("招生人员姓名不能为空!", MsgBoxStyle.Exclamation, "信息框")
Exit Sub
End If
DBRecruit.AddRecruit(Trim(TxtRecruitName.Text))
DGVRecruit.DataSource = DBRecruit.LoadRecruit()
End Sub
Private Sub FrmAddRecruit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DGVRecruit.DataSource = DBRecruit.LoadRecruit()
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -