Beispiel #1
0
        protected override void OnPaintSubItem(SubItemPaintEventArgs paintEventArgs)
        {
            switch ((ColumnId)paintEventArgs.SubItemId)
            {
            case ColumnId.Hash:
                HashColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.HashString);
                break;

            case ColumnId.TreeHash:
                TreeHashColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.TreeHashString);
                break;

            case ColumnId.Name:
            case ColumnId.Message:
                paintEventArgs.PaintImageAndText(Image, DataContext.Message);
                break;

            case ColumnId.Subject:
                SubjectColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision, null, _drawnPointers, paintEventArgs.HoveredPart - PointerTagHitOffset);
                break;

            case ColumnId.Date:
            case ColumnId.CommitDate:
                CommitDateColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.CommitDate);
                break;

            case ColumnId.Committer:
                CommitterColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Committer);
                break;

            case ColumnId.CommitterEmail:
                CommitterEmailColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Committer.Email);
                break;

            case ColumnId.AuthorDate:
                AuthorDateColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.AuthorDate);
                break;

            case ColumnId.User:
            case ColumnId.Author:
                AuthorColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Author);
                break;

            case ColumnId.AuthorEmail:
                AuthorEmailColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Author.Email);
                break;
            }
        }
Beispiel #2
0
        protected override void OnPaintSubItem(SubItemPaintEventArgs paintEventArgs)
        {
            switch ((ColumnId)paintEventArgs.SubItemId)
            {
            case ColumnId.Hash:
                HashColumn.OnPaintSubItem(paintEventArgs, DataContext.HashString);
                break;

            case ColumnId.TreeHash:
                TreeHashColumn.OnPaintSubItem(paintEventArgs, DataContext.TreeHashString);
                break;

            case ColumnId.Graph:
                GraphColumn.OnPaintSubItem(paintEventArgs, Graph, DataContext.IsCurrent ? RevisionGraphItemType.Current : RevisionGraphItemType.Generic);
                break;

            case ColumnId.Name:
            case ColumnId.Subject:
                SubjectColumn.OnPaintSubItem(paintEventArgs, DataContext, Graph, _drawnPointers, paintEventArgs.HoveredPart - PointerTagHitOffset);
                break;

            case ColumnId.Date:
            case ColumnId.CommitDate:
                CommitDateColumn.OnPaintSubItem(paintEventArgs, DataContext.CommitDate);
                break;

            case ColumnId.Committer:
                CommitterColumn.OnPaintSubItem(paintEventArgs, DataContext.Committer);
                break;

            case ColumnId.CommitterEmail:
                CommitterEmailColumn.OnPaintSubItem(paintEventArgs, DataContext.Committer.Email);
                break;

            case ColumnId.AuthorDate:
                AuthorDateColumn.OnPaintSubItem(paintEventArgs, DataContext.AuthorDate);
                break;

            case ColumnId.User:
            case ColumnId.Author:
                AuthorColumn.OnPaintSubItem(paintEventArgs, DataContext.Author);
                break;

            case ColumnId.AuthorEmail:
                AuthorEmailColumn.OnPaintSubItem(paintEventArgs, DataContext.Author.Email);
                break;
            }
        }
Beispiel #3
0
        protected override void OnPaintSubItem(SubItemPaintEventArgs paintEventArgs)
        {
            switch ((ColumnId)paintEventArgs.SubItemId)
            {
            case ColumnId.Hash:
                HashColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.HashString);
                break;

            case ColumnId.Name:
            case ColumnId.Subject:
                SubjectColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision, null, null, -1);
                break;

            case ColumnId.Date:
            case ColumnId.CommitDate:
                CommitDateColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.CommitDate);
                break;

            case ColumnId.Committer:
                CommitterColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Committer);
                break;

            case ColumnId.CommitterEmail:
                CommitterEmailColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Committer.Email);
                break;

            case ColumnId.AuthorDate:
                AuthorDateColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.AuthorDate);
                break;

            case ColumnId.User:
            case ColumnId.Author:
                AuthorColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Author);
                break;

            case ColumnId.AuthorEmail:
                AuthorEmailColumn.OnPaintSubItem(paintEventArgs, DataContext.Revision.Author.Email);
                break;
            }
        }