/// ------------------------------------------------------------------------------------------------ /// Name CheckLegislation /// /// <summary> Checks whether the legislation should be added while appearing. /// </summary> /// <remarks> /// </remarks> /// ------------------------------------------------------------------------------------------------ private void CheckLegislation() { var visit = AppData.PropertyModel.SelectedVisit.Visit; if (AppData.ConfigModel.Legislations(visit.Organisation, visit.Visit.VisitType).Count != 0) { var legislationStackLayout = new VisitActionDetailsViewCell(); Sl_View.Children.Add(legislationStackLayout); } }
/// ------------------------------------------------------------------------------------------------ /// Name CheckLegislation /// /// <summary> Checks whether the legislation should be added while appearing. /// </summary> /// <remarks> /// </remarks> /// ------------------------------------------------------------------------------------------------ private void CheckLegislation() { try { var visit = AppData.PropertyModel.SelectedVisit.Visit; if (AppData.ConfigModel.Legislations(visit.Organisation, visit.Visit.VisitType).Count != 0) { var legislationStackLayout = new VisitActionDetailsViewCell(); Sl_View.Children.Add(legislationStackLayout); } } catch (Exception ex) { LogTracking.LogTrace(ex.ToString()); } }