Пример #1
0
        private void RemoveStatusBarItems()
        {
            // Close conductor and its items without checking CanClose.
            ((IActivatable)_statusConductor).OnDeactivate(true);
            Editor.StatusBarItemsLeft.Remove(_statusConductor);
            _statusConductor = null;

            Editor.StatusBarItemsRight.Remove(_totalMemory);
            _totalMemory.Dispose();
            _totalMemory = null;
        }
Пример #2
0
        private void AddStatusBarItems()
        {
            // Add StatusConductor to status bar (left).
            _statusConductor = new StatusConductor();
            ((IActivatable)_statusConductor).OnActivate();
            Editor.StatusBarItemsLeft.Add(_statusConductor);

            // Show total managed memory in status bar (right).
            _totalMemory = new TotalMemoryViewModel();
            Editor.StatusBarItemsRight.Add(_totalMemory);
        }