Esempio n. 1
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.....");
     }
 }
Esempio n. 2
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;
     }
 }
Esempio n. 3
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();
     }
 }
Esempio 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(); }
 }
Esempio 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....."); }
 }
Esempio 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;
     }
 }