Ejemplo n.º 1
0
 private static void AddSummaryItems(CaseNavigationGraph graph, List <Summary> summaries)
 {
     if (summaries != null)
     {
         summaries.ForEach(summary => graph.NavigationItems.Add(CreateSummaryNavigationItem(summary)));
     }
 }
Ejemplo n.º 2
0
 private static void AddReportItems(CaseNavigationGraph graph, List <Report> reports)
 {
     if (reports != null)
     {
         reports.ForEach(report => graph.NavigationItems.Add(CreateReportNavigationItem(report)));
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Create a New CaseNavigationGraph from the Case object.
        /// </summary>
        private static CaseNavigationGraph CreateCaseGraph(Domain.Summaries.Case.Case cCase)
        {
            var graph = new CaseNavigationGraph()
            {
                NavigationItems = new List <CaseNavigationItem>()
            };

            if (cCase == null)
            {
                return(graph);
            }

            graph.CaseId     = cCase.Id;
            graph.CaseNumber = cCase.Number;

            return(graph);
        }