Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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(); }
 }
Ejemplo n.º 3
0
 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....."); }
 }
Ejemplo n.º 4
0
 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();
     }
 }
Ejemplo n.º 5
0
 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.....");
     }
 }
Ejemplo n.º 6
0
 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;
     }
 }