Beispiel #1
0
        internal static Data ForChange(ChangeInfo changeInfo)
        {
            ItemIconImageType type = ChangeInfoView.
                                     GetIconImageType(changeInfo);

            if (ChangeTypesOperator.AreAllSet(
                    changeInfo.ChangeTypes, ChangeTypes.Added))
            {
                return(BuildData.ForAdded());
            }

            switch (type)
            {
            case ItemIconImageType.Ignored:
                return(BuildData.ForIgnored());

            case ItemIconImageType.Private:
                return(BuildData.ForPrivated());

            case ItemIconImageType.Deleted:
                return(BuildData.ForDeleted());

            case ItemIconImageType.CheckedOut:
                return(BuildData.ForCheckedOut());

            default:
                return(null);
            }
        }
Beispiel #2
0
        internal static Texture ForPendingChange(
            ChangeInfo changeInfo,
            bool isConflict)
        {
            if (isConflict)
            {
                return(ForConflicted());
            }

            ItemIconImageType type = ChangeInfoView.
                                     GetIconImageType(changeInfo);

            if (ChangeTypesOperator.AreAllSet(
                    changeInfo.ChangeTypes, ChangeTypes.Added))
            {
                return(ForAdded());
            }

            switch (type)
            {
            case ItemIconImageType.Ignored:
                return(ForIgnored());

            case ItemIconImageType.Private:
                return(ForPrivated());

            case ItemIconImageType.Deleted:
                return(ForDeleted());

            case ItemIconImageType.CheckedOut:
                return(ForCheckedOut());

            default:
                return(null);
            }
        }