protected override void CurrentChanging() { TopItems.ForAll(x => HightlightLastOpenedFor(x)); // close nested for saving var holder = Current.Holder; if (holder is Patient) { viewer.OpenedMiddle = null; } else if (holder is Course) { viewer.OpenedLeaf = null; } }