public MergeView SetDocument(MergeDocument doc, MergeLocation location) { _doc = doc; _location = location; _editor.Text = GetDocument(); ConfigureLineStarts(); _view.BackgroundRenderers.Add(new DiffBackground(this)); _view.InvalidateLayer(KnownLayer.Background); return(this); }
public MergeView SetDocument(MergeDocument doc, MergeLocation location) { _doc = doc; _location = location; _editor.Text = GetDocument(); ConfigureLineStarts(); _view.BackgroundRenderers.Add(new DiffBackground(this)); _view.InvalidateLayer(KnownLayer.Background); return this; }
private Color GetColor(MergeLocation location) { switch (location) { case MergeLocation.Left: return(Colors.Violet); case MergeLocation.Parent: return(Colors.LightGoldenrodYellow); case MergeLocation.Right: return(Colors.LightGreen); default: throw new ArgumentException(); } }
private Color GetColor(MergeLocation location) { switch (location) { case MergeLocation.Left: return Colors.Violet; case MergeLocation.Parent: return Colors.LightGoldenrodYellow; case MergeLocation.Right: return Colors.LightGreen; default: throw new ArgumentException(); } }