private void btnCreate_Click(object sender, EventArgs e)
 {
     try
     {
         if (!GlobalFunctions.checkRights("tsmUserGroup", "Create"))
         {
             return;
         }
         UserGroupDetailUI _UserGroup = new UserGroupDetailUI();
         _UserGroup.ParentList = this;
         _UserGroup.ShowDialog();
     }
     catch (Exception ex)
     {
         ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "btnCreate_Click");
         em.ShowDialog();
         return;
     }
 }
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (!GlobalFunctions.checkRights("tsmUserGroup", "Update"))
         {
             return;
         }
         if (lId != null)
         {
             UserGroupDetailUI _UserGroupDetail = new UserGroupDetailUI(lId, lDescription, lRemarks);
             _UserGroupDetail.ParentList = this;
             _UserGroupDetail.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "btnUpdate_Click");
         em.ShowDialog();
         return;
     }
 }