public static bool DissociateAllLabs() { try { bool noItemsFound = false; Control_ActionUtilities.Dropdown_SelectAllItems(DL_Site_AssociateLabsPage.AssociatedLabsListBox, out noItemsFound); if (noItemsFound) { return(Control_ActionUtilities.Click(DL_Site_AssociateLabsPage.CancelButton, String.Empty)); } else { Control_ActionUtilities.MouseClick(DL_Site_AssociateLabsPage.RemoveButton, String.Empty); return(Control_ActionUtilities.Click(DL_Site_AssociateLabsPage.SaveButton, String.Empty)); } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }