private void btnAdd_Click(object sender, EventArgs e) { frmAddNewVip frm = new frmAddNewVip(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { LoadByPaging(paging1.CurrentPage); } }
private void btnChange_Click(object sender, EventArgs e) { if (dataVipInfo.SelectedRows != null && dataVipInfo.SelectedRows.Count > 0) { frmAddNewVip frm = new frmAddNewVip(ms[dataVipInfo.SelectedRows[0].Index],2); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { LoadByPaging(paging1.CurrentPage); } } else { MessageBox.Show("请在列表中选择要转卡的会员"); } }