private void btRemoveCertificateType_Click(object sender, EventArgs e) { CertificateType member = BLCertificateType.GetAll().Last(); int rows = BLCertificateType.Remove(member); MessageBox.Show(rows.ToString()); }
private void btUpdateCertificateType_Click(object sender, EventArgs e) { CertificateType member = BLCertificateType.GetAll().Last(); member.CertificateTypeName = member.CertificateTypeName + "Update"; int rows = BLCertificateType.Update(member); MessageBox.Show(rows.ToString()); }
private void btGetAllCertificateTypes_Click(object sender, EventArgs e) { List <CertificateType> list = BLCertificateType.GetAll(); if (list == null) { MessageBox.Show("failed"); } else { MessageBox.Show(list.Count.ToString()); } }