GitUI.RevisionGrid.LoadIsMultilineMessageInfo C# (CSharp) 메소드

LoadIsMultilineMessageInfo() 개인적인 메소드

private LoadIsMultilineMessageInfo ( GitRevision revision, int colIndex, int rowIndex, int totalRowCount, GitModule aModule ) : void
revision GitRevision
colIndex int
rowIndex int
totalRowCount int check if grid has changed while thread is queued
aModule GitModule
리턴 void
        private void LoadIsMultilineMessageInfo(GitRevision revision, int colIndex, int rowIndex, int totalRowCount, GitModule aModule)
        {
            // code taken from CommitInfo.cs
            CommitData commitData = CommitData.CreateFromRevision(revision);
            string error = "";
            if (revision.Body == null)
            {
                CommitData.UpdateCommitMessage(commitData, aModule, revision.Guid, ref error);
                revision.Body = commitData.Body;
            }

            // now that Body is filled (not null anymore) the revision grid can be refreshed to display the new information
            this.InvokeAsync(() =>
            {
                if (Revisions == null || Revisions.RowCount == 0 || Revisions.RowCount <= rowIndex || Revisions.RowCount != totalRowCount)
                {
                    return;
                }
                Revisions.InvalidateCell(colIndex, rowIndex);
            });
        }
RevisionGrid