页面实现代码:
IDCardNumber idCardNumber; public SelectIDCard() { InitializeComponent(); } private void btnQuery_Click(object sender, EventArgs e) { idCardNumber = new IDCardNumber(txtIDCardNumber.Text); lblResult.Text = idCardNumber.CheckIDCardNumber(txtIDCardNumber.Text); }
使用类IDCardNumber源代码: