Example #1
0
        public bool RemoveOutgoingAttachment(OutgoingAttachment outgoingAttachment)
        {
            for (int i = 0; i < outgoingAttachments.Count; i++)
            {
                if (ReferenceEquals(outgoingAttachments.Values[i], outgoingAttachment))
                {
                    outgoingAttachments.RemoveAt(i);
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
        public bool RemoveMask(Mask mask)
        {
            for (int i = 0; i < masks.Count; i++)
            {
                if (ReferenceEquals(masks.Values[i], mask))
                {
                    masks.RemoveAt(i);
                    return(true);
                }
            }

            return(false);
        }
Example #3
0
        public bool RemoveAnimation(Animation animation)
        {
            if (unusedAnimations != null && unusedAnimations.Remove(animation))
            {
                return(true);
            }

            for (int i = 0; i < animations.Count; i++)
            {
                if (ReferenceEquals(animations.Values[i], animation))
                {
                    animations.RemoveAt(i);
                    return(true);
                }
            }

            return(false);
        }