コード例 #1
0
        /// ------------------------------------------------------------------------------------------------
        /// 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);
            }
        }
コード例 #2
0
 /// ------------------------------------------------------------------------------------------------
 /// 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());
     }
 }