상속: BaseViewModel
예제 #1
0
 private void RaiseErrorMessageSelected(OutputItemViewModel output)
 {
     if (output != null && ErrorMessageSelected != null)
     {
         ErrorMessageSelected(this, new ErrorMessageEventArgs(output));
     }
 }
        public bool FindError(OutputItemViewModel item)
        {
            if (item != null)
            {
                PageViewModel page = null;

                try { page = Editor.Items.Where(i => i.Filename == item.Filename).Single(); } catch { /* if we're here the page is closed */ }
                if (page != null)
                {
                    DocumentLine line = page.Content.Document.GetLineByNumber(item.Line);
                    page.Content.Select(line.Offset, line.Length);
                    page.Content.TextArea.Caret.BringCaretToView();
                    page.IsActive = true;
                    return(true);
                }
            }
            return(false);
        }
        public bool FindError(OutputItemViewModel item)
        {
            if (item != null)
            {
                PageViewModel page = null;

                try { page = Editor.Items.Where(i => i.Filename == item.Filename).Single(); } catch { /* if we're here the page is closed */ }
                if (page != null)
                {
                    DocumentLine line = page.Content.Document.GetLineByNumber(item.Line);
                    page.Content.Select(line.Offset, line.Length);
                    page.Content.TextArea.Caret.BringCaretToView();
                    page.IsActive = true;
                    return true;
                }
            }
            return false;
        }
예제 #4
0
 public void AddItem(Models.OutputItem model)
 {
     OutputItemViewModel item = new OutputItemViewModel(model, this);
     Items.Add(item);
 }
예제 #5
0
 public ErrorMessageEventArgs(OutputItemViewModel output)
 {
     _Output = output;
 }
예제 #6
0
 public ErrorMessageEventArgs(OutputItemViewModel output)
 {
     _Output = output;
 }
예제 #7
0
        public void AddItem(Models.OutputItem model)
        {
            OutputItemViewModel item = new OutputItemViewModel(model, this);

            Items.Add(item);
        }