Exemplo n.º 1
0
 public void load()
 {
     all = new CompoundGraphic();
     all.Add(new Dot(1, 2));
     all.Add(new Circle(5, 3, 10));
     //...
 }
Exemplo n.º 2
0
        /// <summary>
        /// combine selected components into one complex composite
        /// component.
        /// </summary>
        /// <param name="components"></param>
        public void GroupSelected(List <IGraphic> components)
        {
            var group = new CompoundGraphic();

            group.Add(components);
            all.Remove(components);
            all.Add(group);
            all.Draw();
        }