void ActiveTextAreaControl_DoubleClick(object sender, EventArgs e)
        {
            if (blameList == null || blameList.Count < BlameFile.ActiveTextAreaControl.TextArea.Caret.Line)
                return;

            FormDiffSmall frm = new FormDiffSmall();
            frm.SetRevision(blameList[BlameFile.ActiveTextAreaControl.TextArea.Caret.Line].CommitGuid);
            frm.ShowDialog();
        }
Example #2
0
        private void BlameGrid_DoubleClick(object sender, EventArgs e)
        {
            if (BlameGrid.SelectedRows.Count == 0)
                return;

            FormDiffSmall frm = new FormDiffSmall();
            frm.SetRevision(((GitBlame)BlameGrid.SelectedRows[0].DataBoundItem).CommitGuid);
            frm.ShowDialog();
        }
Example #3
0
        private void FileChanges_DoubleClick(object sender, EventArgs e)
        {
            if (FileChanges.SelectedRows.Count > 0)
            {
                GitItem revision = (GitItem)FileChanges.SelectedRows[0].DataBoundItem;

                FormDiffSmall form = new FormDiffSmall();
                form.SetRevision(revision.CommitGuid);
                form.ShowDialog();
            }
            else
                new FormDiff().ShowDialog();
        }
Example #4
0
        private void FileChangesDoubleClick(object sender, EventArgs e)
        {
            if (FileChanges.GetRevisions().Count == 0)
            {
                GitUICommands.Instance.StartCompareRevisionsDialog();
                return;
            }

            IGitItem revision = FileChanges.GetRevisions()[0];

            var form = new FormDiffSmall();
            form.SetRevision(revision.Guid);
            form.ShowDialog();
        }
        private void FileChangesDoubleClick(object sender, EventArgs e)
        {
            if (FileChanges.GetRevisions().Count == 0)
            {
                GitUICommands.Instance.StartCompareRevisionsDialog();
                return;
            }

            IGitItem revision = FileChanges.GetRevisions()[0];

            var form = new FormDiffSmall();

            form.SetRevision(revision.Guid);
            form.ShowDialog();
        }
Example #6
0
 private void Revisions_DoubleClick(object sender, EventArgs e)
 {
     List<GitRevision> r = GetRevisions();
     if (r.Count > 0)
     {
         FormDiffSmall form = new FormDiffSmall();
         form.SetRevision(r[0]);
         form.ShowDialog();
     }
     else
         GitUICommands.Instance.StartCompareRevisionsDialog();
 }
Example #7
0
 public void ViewSelectedRevisions()
 {
     var selectedRevisions = GetSelectedRevisions();
     if (selectedRevisions.Count > 0)
     {
         var form = new FormDiffSmall(UICommands, selectedRevisions[0]);
         form.ShowDialog(this);
     }
     else
         UICommands.StartCompareRevisionsDialog(this);
 }
Example #8
0
 private void Revisions_DoubleClick(object sender, EventArgs e)
 {
     List<GitRevision> r = GetRevisions();
     if (r.Count > 0)
     {
         FormDiffSmall form = new FormDiffSmall();
         form.SetRevision(r[0]);
         form.ShowDialog();
     }
     else
         new FormDiff().ShowDialog();
 }
Example #9
0
 private void RevisionsDoubleClick(object sender, EventArgs e)
 {
     var r = GetSelectedRevisions();
     if (r.Count > 0)
     {
         var form = new FormDiffSmall();
         form.SetRevision(r[0]);
         form.ShowDialog(this);
     }
     else
         GitUICommands.Instance.StartCompareRevisionsDialog(this);
 }