示例#1
0
 protected void InheritDecoration(DecorationXml obj, DecorationXml decoration)
 {
     if (decoration != null && decoration.Commands.Count > 0)
         if (obj == null || decoration.Commands.Count == 0)
             obj = decoration;
         else
         {
             for (int i = 0; i < decoration.Commands.Count; i++)
                 obj.Commands.Insert(i, decoration.Commands[i]);
         }
 }
示例#2
0
 public DecorationStandaloneXml(DecorationXml full)
 {
     Commands = full.Commands;
 }