Exemple #1
0
        public void NavigateTo(I node)
        {
            OnNavigating(new DomainEntityEventArgs(node));
            if (node == null)
            {
                viewer.CloseAll();
                Current = null;
                return;
            }

            inNavigating = true;
            AddRootItemFor(node);
            inNavigating = false;

            lastOpened = node;
            viewer.Open(node);
            Contract.Assume(node == lastOpened || viewer.AutoOpenChild);

            Current = FindItemVmOf(lastOpened);
        }
Exemple #2
0
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    HrEditor.Dispose();
                    CloseHeader();
                    CloseHrList();

                    viewer.CloseAll();

                    Navigator.Dispose();

                    Session.DoSave(AuthorityController.CurrentDoctor);
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }