Ejemplo n.º 1
0
        //public hook to search the tree
        /*public void FindACVs(int maxSize)
        {
            if (this.Visits.Count > 0)
            {
                ACVTreeNode root = new ACVTreeNode(null, null);
                List<Visit> currentACV = new List<Visit>();

                this.traverseACVTree(root, this.Visits, currentACV, 0, 0, maxSize, null);
            }
        }*/
        //public hook to search the tree and register a callback
        public void FindACVs(int maxSize, ACVFoundEventHandler callback, Visit mustInclude)
        {
            this.Visits = DbMethods.getInstance().getPatientVisits(this.ID);
            this.ACVFound = callback;
            if (this.Visits.Count > 0)
            {
                ACVTreeNode root = new ACVTreeNode(null, null);
                List<Visit> currentACV = new List<Visit>();

                this.traverseACVTree(root, this.Visits, currentACV, 0, 0, maxSize, mustInclude);
            }
        }
Ejemplo n.º 2
0
 public void FindACVs(int maxSize, ACVFoundEventHandler callback)
 {
     this.FindACVs(maxSize, callback, null);
 }