/// <summary>
        /// Save the selected user roles
        /// </summary>
        private void SaveRole()
        {
            try
            {
                Progress.ProcessingText = PDMsg.ProgressUpdateText;
                Progress.Start();

                if (_securityUserRolesDet.SaveRolesForTheUser(Sec_User_Roles_List, _userName) == true)
                {
                    Progress.End();
                    ShowInformationMessage(PDMsg.SavedSuccessfully);
                    //MessageBox.Show("All Roles have been Saved Successfully", "SmartPD");
                    CloseAction();
                }
                else
                {
                    Progress.End();
                }
                if (_closed == false)
                {
                    _closed = true;
                    CloseAction();
                }
            }
            catch (Exception ex)
            {
                throw ex.LogException();
            }
        }
 /// <summary>
 /// Save the selected user roles
 /// </summary>
 private void SaveRole()
 {
     try
     {
         _securityUserRolesDet.SaveRolesForTheUser(Sec_User_Roles_List, _userName);
         CloseAction();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Process Designer");
     }
 }