예제 #1
0
 public void ThenISeeLabPageInViewMode()
 {
     if (!Control_PropertyUtilities.IsControlDisabled(DL_AddLabPage.SaveButton))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
 public static Boolean VerifyAddLabPageInViewMode()
 {
     try
     {
         foreach (IControl c in DL_AddLabPage.FieldsOnLabPage)
         {
             if (!Control_PropertyUtilities.IsControlDisabled(c))
             {
                 return(false);
             }
         }
         if (!Control_PropertyUtilities.IsControlDisabled(DL_AddLabPage.SaveAndAddAnotherButton))
         {
             return(false);
         }
         if (!Control_PropertyUtilities.IsControlDisabled(DL_AddLabPage.SaveButton))
         {
             return(false);
         }
         if (Control_PropertyUtilities.IsControlDisabled(DL_AddLabPage.CancelButton))
         {
             return(false);
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(true);
 }
예제 #3
0
 public static bool IsAttestationEditable()
 {
     try
     {
         return(Control_PropertyUtilities.IsControlVisible(DL_PISignaturePage.AttestationTextArea) &&
                !Control_PropertyUtilities.IsControlDisabled(DL_PISignaturePage.AttestationTextArea));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
예제 #4
0
 public static bool LabsDropDownStatus(String status)
 {
     try
     {
         if ((Control_PropertyUtilities.IsControlDisabled(DS_StudyProperties.LabDropDown)))
         {
             return(false);
         }
     }
     catch (Exception e)
     {
         new Reports.DebugLog.DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
예제 #5
0
 public static bool LabsDropDownStatus(String dropdownStatus)
 {
     try
     {
         if (dropdownStatus.Equals("Enabled"))
         {
             bool status = Control_PropertyUtilities.IsEnabled(DS_StudyProperties.LabDropDown);
             return(status);
         }
         else if (dropdownStatus.Equals("Disabled"))
         {
             bool status = Control_PropertyUtilities.IsControlDisabled(DS_StudyProperties.LabDropDown);
             return(status);
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }