private void UpdateRole() { if (this.gridRoleList.ActiveRow != null) { frmRoleEdit frm = new frmRoleEdit(); frm.RoleId = this.gridRoleList.ActiveRow.Cells["ROLEID"].Value.ToString(); frm.ShowDialog(this); ShowRoleList(); } }
private void NewRole() { frmRoleEdit frm = new frmRoleEdit(); frm.ShowDialog(this); ShowRoleList(); }