public static bool VerifyFormRestrictionMessage(List <PDEP_FormAccesssRestrictionMessageData> dataList)
        {
            try
            {
                foreach (PDEP_FormAccesssRestrictionMessageData data in dataList)
                {
                    if (String.IsNullOrEmpty(data.Event) || String.IsNullOrEmpty(data.Form) || String.IsNullOrEmpty(data.RestrictionMessage))
                    {
                        return(false);
                    }

                    IControl formCell = null;
                    IControl formRow  = GetFormRow(data.Event, data.Form, out formCell);
                    if (!Control_PropertyUtilities.IsControlNull(formCell))
                    {
                        IControl formLink = DL_CRF_PDEP_EventsPage.GetFormLink(formCell);
                        bool     found    = false;
                        String   value    = Control_PropertyUtilities.GetAttributeValue(formLink, "rel", out found);
                        if (!found || !value.Equals(data.RestrictionMessage, StringComparison.InvariantCultureIgnoreCase))
                        {
                            return(false);
                        }
                    }
                }
                return(true);
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(false);
        }
 public static bool OpenForm(String eventName, String formName)
 {
     try
     {
         IControl formCell = null;
         IControl formRow  = GetFormRow(eventName, formName, out formCell);
         if (!Control_PropertyUtilities.IsControlNull(formCell))
         {
             IControl formLink = DL_CRF_PDEP_EventsPage.GetFormLink(formCell);
             return(Control_ActionUtilities.Click(formLink, String.Empty));
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }