Esempio n. 1
0
 private void ActiveTextAreaControlDoubleClick(object sender, EventArgs e)
 {
     if (_lastBlameLine.CommitGuid == null)
     {
         return;
     }
     if (_revGrid != null)
     {
         _clickedBlameLine = _lastBlameLine;
         _revGrid.SetSelectedRevision(_lastBlameLine.CommitGuid);
     }
     else
     {
         using (var frm = new FormCommitDiff(UICommands, _lastBlameLine.CommitGuid))
             frm.ShowDialog(this);
     }
 }
Esempio n. 2
0
        private void ActiveTextAreaControlDoubleClick(object sender, EventArgs e)
        {
            if (_lastRevision == null)
            {
                return;
            }
            var gitRevision = GetRevision(_lastRevision);

            if (_revGrid != null)
            {
                _revGrid.SetSelectedRevision(gitRevision);
            }
            else
            {
                using (var frm = new FormCommitDiff(UICommands, gitRevision))
                    frm.ShowDialog(this);
            }
        }
Esempio n. 3
0
        private void ActiveTextAreaControlDoubleClick(object sender, EventArgs e)
        {
            if (_lastRevision == null)
            {
                return;
            }
            var gitRevision = new GitRevision(Module, _lastRevision)
            {
                ParentGuids = new[] { _lastRevision + "^" }
            };

            if (_revGrid != null)
            {
                _revGrid.SetSelectedRevision(gitRevision);
            }
            else
            {
                using (var frm = new FormDiffSmall(UICommands, gitRevision))
                    frm.ShowDialog(this);
            }
        }
Esempio n. 4
0
 private void ActiveTextAreaControlDoubleClick(object sender, EventArgs e)
 {
     if (_revGrid != null)
     {
         _revGrid.SetSelectedRevision(new GitRevision {
             Guid = _lastRevision, ParentGuids = new[] { _lastRevision + "^" }
         });
     }
     else
     {
         var frm = new FormDiffSmall();
         frm.SetRevision(_lastRevision);
         frm.ShowDialog();
     }
 }
Esempio n. 5
0
        public void GotoCommitExcecute()
        {
            using (FormGoToCommit formGoToCommit = new FormGoToCommit(_revisionGrid.UICommands))
            {
                if (formGoToCommit.ShowDialog(_revisionGrid) != DialogResult.OK)
                {
                    return;
                }

                string revisionGuid = formGoToCommit.ValidateAndGetSelectedRevision();
                if (!string.IsNullOrEmpty(revisionGuid))
                {
                    _revisionGrid.SetSelectedRevision(new GitRevision(_revisionGrid.Module, revisionGuid));
                }
                else
                {
                    MessageBox.Show(_revisionGrid, _noRevisionFoundError.Text);
                }
            }
        }
        public void GotoCommitExcecute()
        {
            using (FormGoToCommit formGoToCommit = new FormGoToCommit(_revisionGrid.UICommands))
            {
                if (formGoToCommit.ShowDialog(_revisionGrid) != DialogResult.OK)
                {
                    return;
                }

                var revisionGuid = formGoToCommit.ValidateAndGetSelectedRevision();
                if (revisionGuid != null)
                {
                    _revisionGrid.SetSelectedRevision(new GitRevision(revisionGuid.ToString()));
                }
                else
                {
                    MessageBox.Show(_revisionGrid, _noRevisionFoundError.Text);
                }
            }
        }
Esempio n. 7
0
 public FormLog(GitUICommands aCommands, GitRevision revision)
     : this(aCommands)
 {
     RevisionGrid.SetSelectedRevision(revision);
 }