示例#1
0
 private void goToToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FormGoToCommit formGoToCommit = new FormGoToCommit();
     if (formGoToCommit.ShowDialog(this) == DialogResult.OK)
     {
         string revisionGuid = formGoToCommit.GetRevision();
         if (!string.IsNullOrEmpty(revisionGuid))
         {
             RevisionGrid.SetSelectedRevision(new GitRevision(revisionGuid));
         }
         else
         {
             MessageBox.Show(this, _noRevisionFoundError.Text);
         }
     }
 }
示例#2
0
 private void goToToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FormGoToCommit formGoToCommit = new FormGoToCommit();
     formGoToCommit.ShowDialog();
     string revisionGuid = formGoToCommit.GetRevision();
     if (!string.IsNullOrEmpty(revisionGuid))
     {
         RevisionGrid.SetSelectedRevision(new GitRevision { Guid = revisionGuid });
     }
     else
     {
         MessageBox.Show("No revision found.");
     }
 }