コード例 #1
0
        public override object Clone()
        {
            ChoreographyNodeStyle clone = new ChoreographyNodeStyle
            {
                InitiatingAtTop    = InitiatingAtTop,
                InitiatingMessage  = InitiatingMessage,
                Insets             = Insets,
                LoopCharacteristic = LoopCharacteristic,
                MinimumSize        = MinimumSize,
                ResponseMessage    = ResponseMessage,
                SubState           = SubState,
                Type            = Type,
                IconColor       = IconColor,
                InitiatingColor = InitiatingColor,
                ResponseColor   = ResponseColor,
                Outline         = Outline,
                Background      = Background,
                MessageOutline  = MessageOutline
            };

            foreach (var participant in TopParticipants)
            {
                clone.TopParticipants.Add(participant.Clone());
            }
            foreach (var participant in BottomParticipants)
            {
                clone.BottomParticipants.Add(participant.Clone());
            }
            return(clone);
        }
コード例 #2
0
 internal ChoreographyInsetsProvider(ChoreographyNodeStyle style)
 {
     this.style = style;
 }