private void roleResourceMapping_Click(object sender, EventArgs e) { try { string path = Application.ExecutablePath; //Executable path frmResourceRoleMapping frmResRoleMap = new frmResourceRoleMapping(dbl, path); //Create an object and send a datalayer object in the constructor. frmResRoleMap.Show(); } catch (Exception) { throw; } }
private void cmdClose_Click(object sender, EventArgs e) { sResourceList = Rbacd.GetAllResources(); //If resource table is not empty then role resource map form will be opened, else close the whole operation. if (sResourceList.Count > 0) { this.Close(); frmResourceRoleMapping frmMap = new frmResourceRoleMapping(Rbacd, assemblyPath); frmMap.Show(); } else { this.Close(); } }
private void cmdSave_Click(object sender, EventArgs e) { if (Rbacd.SaveResources(rcsList)) { this.Close(); frmResourceRoleMapping frmMap = new frmResourceRoleMapping(Rbacd, assemblyPath); frmMap.Show(); } else { MessageBox.Show("Error while saving the resource table....."); } }
private void roleResourceMapping_Click(object sender, EventArgs e) { try { string path = Application.ExecutablePath;//Executable path frmResourceRoleMapping frmResRoleMap = new frmResourceRoleMapping(dbl, path); //Create an object and send a datalayer object in the constructor. frmResRoleMap.Show(); } catch (Exception) { throw; } }