예제 #1
0
        //Make a copy of this object, usefull for making the history, since it is a reference type and can't be used otherwise
        public Composite Copy()
        {
            Composite tmp = new Composite(this.id, this.type);

            tmp.height = this.height;
            tmp.width  = this.width;
            tmp.x      = this.x;
            tmp.y      = this.y;
            foreach (Composite c in groupitems)
            {
                tmp.Add(c.Copy());
            }
            foreach (Ornament c in ornaments)
            {
                tmp.ornaments.Add(c.Copy());
            }
            return(tmp);
        }
예제 #2
0
파일: CommandClasses.cs 프로젝트: Yup746/DP
 public void Execute()
 {
     composite.Add(addition);
 }