Ejemplo n.º 1
0
        private void OnCritDeleted(ICrit crit)
        {
            viewer.RemoveFromHistory(crit);

            if (crit is Estimator)
            {
                Navigator.RemoveRoot(crit as Estimator);
            }
        }
Ejemplo n.º 2
0
        private void OnHolderDeleted(IHrsHolder holder)
        {
            Contract.Assume(deletingHolder != null);

            viewer.RemoveFromHistory(holder);

            if (holder is Patient)
            {
                Navigator.RemoveRoot(holder as Patient);
                if (Navigator.TopItems.Count == 0)
                {
                    OnLastItemRemoved();
                }
            }

            // holder may be child of deleting
            if (deletingHolder == holder)
            {
                deletingHolder = null;
            }
        }