Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
                }
            }
Exemplo n.º 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();
     }
 }