SetRevision() 공개 메소드

public SetRevision ( GitRevision revision ) : void
revision GitRevision
리턴 void
예제 #1
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();
        }
예제 #2
0
        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();
        }
예제 #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();
        }
예제 #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();
        }
예제 #5
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();
        }
예제 #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();
 }
예제 #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();
 }
예제 #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);
 }