示例#1
0
 private void Blame_CommandClick(object sender, CommitInfo.CommandEventArgs e)
 {
     if (e.Command == "gotocommit")
     {
         FileChanges.SetSelectedRevision(new GitRevision(Module, e.Data));
     }
     else if (e.Command == "gotobranch" || e.Command == "gototag")
     {
         string     error  = "";
         CommitData commit = CommitData.GetCommitData(Module, e.Data, ref error);
         if (commit != null)
         {
             FileChanges.SetSelectedRevision(new GitRevision(Module, commit.Guid));
         }
     }
 }
 private void commitInfo_CommandClick(object sender, CommandEventArgs e)
 {
     if (CommandClick != null)
         CommandClick(sender, e);
 }