示例#1
0
 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);
 }
示例#2
0
 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;
 }