private void btnRoleAdd_Click(object sender, EventArgs e) { GetMaxID(); frmRoleInfo myfrmRoleInfo = new frmRoleInfo(this.paramMaxRoleID); if (myfrmRoleInfo.ShowDialog() == DialogResult.Yes) { frmPermissionManage_Load(sender, e); } }
private void btnRoleUpdate_Click(object sender, EventArgs e) { int Count = this.dgvMain.SelectedRows.Count; if (Count == 0) { MessageBox.Show("请选择行"); return; } string paramIRoleInfoID = this.dgvMain.SelectedRows[0].Cells["RoleID"].Value.ToString(); frmRoleInfo myfrmRoleInfo = new frmRoleInfo(paramIRoleInfoID); if (myfrmRoleInfo.ShowDialog() == DialogResult.Yes) { frmPermissionManage_Load(sender, e); } }