private void OnProjectUnLoaded(Project project)
        {
            if (!Dispatcher.CheckAccess())
            {
#if DEBUG
                Debugger.Break();
#endif
                Dispatcher.Invoke(DispatcherPriority.Normal, (Action <Project>)OnProjectUnLoaded, project);
                return;
            }

            BreadcrumbPanel.Children.Clear();
            BreadcrumbPanel.Background = SystemColors.ControlBrush;
            BreadcrumbPanel.Children.Add(m_FocusStartElement);
            BreadcrumbPanel.Children.Add(m_FocusStartElement2);
            var tb = new TextBlock(new Run(Tobi_Plugin_StructureTrailPane_Lang.No_Document))
            {
                Margin = new Thickness(4, 2, 0, 2)
            };
            //tb.SetValue(AutomationProperties.NameProperty, Tobi_Plugin_StructureTrailPane_Lang.No_Document);
            BreadcrumbPanel.Children.Add(tb);

            PathToCurrentTreeNode = null;
            m_FocusStartElement.SetAccessibleNameAndNotifyScreenReaderAutomationIfKeyboardFocused(Tobi_Plugin_StructureTrailPane_Lang.No_Document);
            m_FocusStartElement.ToolTip = Tobi_Plugin_StructureTrailPane_Lang.No_Document;

            m_FocusStartElement2.SetAccessibleNameAndNotifyScreenReaderAutomationIfKeyboardFocused("_");
            m_FocusStartElement2.ToolTip = Tobi_Plugin_StructureTrailPane_Lang.No_Document;

            if (m_UndoRedoManagerHooker != null)
            {
                m_UndoRedoManagerHooker.UnHook();
            }
            m_UndoRedoManagerHooker = null;
        }
        protected override void OnProjectUnLoaded(Project project)
        {
            base.OnProjectUnLoaded(project);

            if (m_UndoRedoManagerHooker != null)
            {
                m_UndoRedoManagerHooker.UnHook();
            }
            m_UndoRedoManagerHooker = null;
        }
Ejemplo n.º 3
0
        private void OnProjectUnLoaded(Project project)
        {
            if (m_UndoRedoManagerHooker != null)
            {
                m_UndoRedoManagerHooker.UnHook();
            }
            m_UndoRedoManagerHooker = null;

            OnProjectLoaded(null);
        }
        private void onProjectUnLoaded(Project project)
        {
            if (m_UndoRedoManagerHooker != null)
            {
                m_UndoRedoManagerHooker.UnHook();
            }
            m_UndoRedoManagerHooker = null;

            PagesNavigator = null;
            View.UnloadProject();
        }
Ejemplo n.º 5
0
        private void onProjectUnLoaded(Project project)
        {
            if (m_UndoRedoManagerHooker != null)
            {
                m_UndoRedoManagerHooker.UnHook();
            }
            m_UndoRedoManagerHooker = null;

            View.UnloadProject();
            MarkersNavigator = null;

            RaisePropertyChanged(() => SelectedTreeNode);
        }