public ErrorBackgroundRenderer(TextEditor editor, ProjectItemCodeDocument projectitem)
        {
            _editor = editor;
            _codeitem = projectitem;
            _solution = projectitem.Project.Solution;

            //_editor.TextArea.Caret.PositionChanged += (s, e) => Invalidate();
        }
Exemplo n.º 2
0
        public SolutionExplorerVM(SmartSolution solution)
        {
            _smartSolution = solution;

            _solutionRoot = new TreeViewProjectItemSolutionFolder(_smartSolution);
            _solutions.Add(_solutionRoot);
            _smartSolution.ProjectAdded += OnProjectAdded;
            _smartSolution.ProjectRemoved += OnProjectRemoved;

            Import();
        }
 public TreeViewProjectItemSolutionFolder(SmartSolution solution)
     : base()
 {
     _solution = solution;
         ImageSource = @"../Images/blocks.ico";
 }
Exemplo n.º 4
0
        protected void SetSolution(SmartSolution solution)
        {
            _solution = solution;

            if(solution != null) {
                _solution.OutputDataChanged += (s, e) => {
                    OnPropertyChanged(() => OutputData);
                };

                SolutionVM = new SolutionExplorerVM(_solution);
                ErrorListVM = new ErrorListViewModel(_solution.ErrorService);
            } else {
                SolutionVM = null;
                ErrorListVM = null;
            }
        }