public void Dispose() { GC.SuppressFinalize(this); if (_viewer != null && !_viewer.IsClosed) { _viewer.Close(); } _viewer = null; }
ITextView FindActiveTextView(IDifferenceViewer diffViewer) { switch (diffViewer.ActiveViewType) { case DifferenceViewType.InlineView: return(diffViewer.InlineView); case DifferenceViewType.LeftView: return(diffViewer.LeftView); case DifferenceViewType.RightView: return(diffViewer.RightView); } return(null); }
public DifferenceViewerPreview(IDifferenceViewer viewer) { Contract.ThrowIfNull(viewer); _viewer = viewer; }