Пример #1
0
    void IAddChild.AddChild(object child)
    {
      if (child is Transform == false)
      {
        throw new ArgumentException(string.Format("must be of type {0}", this.GetType()));
      }

      if (_children == null)
      {
        _children = new TransformCollection();
      }

      _children.Add((Transform)child);
    }
 public TransformGroup(TransformCollection transforms)
 {
     _children = transforms;
 }
Пример #3
0
 public TransformGroup(TransformCollection transforms)
 {
   _children = transforms;
 }