private void TryInitializeViews() { if (_doc != null && this.IsLoaded) { _leftView = new MergeView(editLeft).SetDocument(_doc, MergeLocation.Left); _parentView = new MergeView(editParent).SetDocument(_doc, MergeLocation.Parent); _rightView = new MergeView(editRight).SetDocument(_doc, MergeLocation.Right); _outputView = new MergeView(editOutput).SetDocument(_doc, MergeLocation.Output); _scrollBoundaries = MergeView.GetScrollBoundaries(_leftView, _parentView, _rightView, _outputView); _views = new MergeView[] { _leftView, _parentView, _rightView, _outputView }; vertScroll.Minimum = 0.0; vertScroll.Maximum = _scrollBoundaries.Last(); } }
public DiffBackground(MergeView view) { _view = view; }