Ejemplo n.º 1
0
        private void btnOK_Click(object sender, System.EventArgs e)
        {
            if (!CheckCardSN(CardSN))
            {
                //remove   comment
                //
                MsgBox.Show("卡号错误!" + Environment.NewLine +
                            "卡号长度必须为16位,并且只能由数字或 A - F 的字母组成!");
                return;
            }
            bool snExist;

            snExist = XGDB.CheckCardSNExist(CardSN.Trim(), _editId);
            if (snExist)
            {
                MsgBox.Show("卡号已经存在!");
                return;
            }
            DialogResult = DialogResult.OK;
            Close();
        }