Example #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);
 }
Example #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;
 }
Example #3
0
            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();
                }
            }
Example #4
0
 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();
     }
 }