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]);
         }
 }
Example #2
0
 public DecorationStandaloneXml(DecorationXml full)
 {
     Commands = full.Commands;
 }