Exemplo n.º 1
0
 void _internalFileViewer_SelectedLineChanged(object sender, SelectedLineEventArgs e)
 {
     if (SelectedLineChanged != null)
     {
         SelectedLineChanged(sender, e);
     }
 }
Exemplo n.º 2
0
 void _internalFileViewer_SelectedLineChanged(object sender, SelectedLineEventArgs e)
 {
     SelectedLineChanged?.Invoke(sender, e);
 }
Exemplo n.º 3
0
 void _internalFileViewer_SelectedLineChanged(object sender, SelectedLineEventArgs e)
 {
     if (SelectedLineChanged != null)
         SelectedLineChanged(sender, e);
 }
Exemplo n.º 4
0
        void SelectedLineChanged(object sender, SelectedLineEventArgs e)
        {
            int selectedLine = e.SelectedLine;
            if (_blame == null || selectedLine >= _blame.Lines.Count)
                return;

            //TODO: Request GitRevision from RevisionGrid that contain all commits
            var newBlameLine = _blame.Lines[selectedLine];
            if (_lastBlameLine.CommitGuid == newBlameLine.CommitGuid)
                return;

            _lastBlameLine = newBlameLine;
            CommitInfo.Revision = Module.GetRevision(_lastBlameLine.CommitGuid);
        }