private void OnCritDeleted(ICrit crit) { viewer.RemoveFromHistory(crit); if (crit is Estimator) { Navigator.RemoveRoot(crit as Estimator); } }
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; } }