SetRevision() public method

public SetRevision ( GitRevision revision ) : void
revision GitRevision
return void
        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();
        }
        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();
        }
Beispiel #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();
        }
        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();
        }
Beispiel #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();
 }
Beispiel #7
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();
 }
Beispiel #8
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);
 }