MemberManagement/FrmCreateMember.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MemberManagement
{
public partial class FrmCreateMember : Form
{
public FrmCreateMember()
{
InitializeComponent();
}
private void FrmPublish_Load(object sender, EventArgs e)
{
this.txtCard1.Focus();
}
private void btnSave_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.txtCard1.Text))
{
MessageBox.Show("卡号不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.txtCard1.Focus();
return;
}
if (string.IsNullOrEmpty(this.txtCard2.Text))
{
MessageBox.Show("健康档案编号不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.txtCard2.Focus();
return;
}
if (string.IsNullOrEmpty(this.txtName.Text))
{
MessageBox.Show("姓名不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.txtName.Focus();
return;
}
if (string.IsNullOrEmpty(this.txtPhone.Text))
{
MessageBox.Show("手机号不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.txtPhone.Focus();
return;
}
((Button)sender).Enabled = false;
if (this.SaveMember())
{
MessageBox.Show("发卡成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.ControlReset();
}
((Button)sender).Enabled = true;
}
private bool SaveMember()
后面还有 58 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。