public override void Dispose()
        {
            _projectFilesViewModel?.Dispose();
            _projectsNavigationViewModel?.Dispose();

            base.Dispose();
        }
示例#2
0
        public override void Dispose()
        {
            _projectFilesViewModel?.Dispose();

            if (_projectsController != null)
            {
                _projectsController.CurrentProjectChanged -= ProjectsController_CurrentProjectChanged;
            }

            if (_editorController != null)
            {
                _editorController.Opened -= EditorController_Opened;
            }

            _projectsNavigationViewModel?.Dispose();


            base.Dispose();
        }