Example #1
0
 /// <summary>
 /// RoleAdd click to add a new role
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnRoleAdd_Click(object sender, EventArgs e)
 {
     try
     {
         if (cmbRole.SelectedValue != null)
         {
             strRole = cmbRole.SelectedValue.ToString();
         }
         else
         {
             strRole = string.Empty;
         }
         frmRole Roleobj = new frmRole();
         Roleobj.MdiParent = formMDI.MDIObj;
         Roleobj.CallFromUserCreation(this);
         this.Enabled = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("UC:20" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #2
0
 /// <summary>
 /// RoleAdd click to add a new role
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnRoleAdd_Click(object sender, EventArgs e)
 {
     try
     {
         if (cmbRole.SelectedValue != null)
         {
             strRole = cmbRole.SelectedValue.ToString();
         }
         else
         {
             strRole = string.Empty;
         }
         frmRole Roleobj = new frmRole();
         Roleobj.MdiParent = formMDI.MDIObj;
         Roleobj.CallFromUserCreation(this);
         this.Enabled = false;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "UC:20" + ex.Message;
     }
 }
 /// <summary>
 /// RoleAdd click to add a new role
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnRoleAdd_Click(object sender, EventArgs e)
 {
     try
     {
         if (cmbRole.SelectedValue != null)
         {
             strRole = cmbRole.SelectedValue.ToString();
         }
         else
         {
             strRole = string.Empty;
         }
         frmRole Roleobj = new frmRole();
         Roleobj.MdiParent = formMDI.MDIObj;
         Roleobj.CallFromUserCreation(this);
         this.Enabled = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("UC:20" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }