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; }
public void AddItem(Models.OutputItem model) { OutputItemViewModel item = new OutputItemViewModel(model, this); Items.Add(item); }
public ErrorMessageEventArgs(OutputItemViewModel output) { _Output = output; }