Ejemplo n.º 1
0
 public Picture()
 {
     undoRedo = new UndoRedo {
         Picture = this
     };
     rememberedComposite = new Dictionary <string, Figure>();
     tempGroup           = new Composite();
     manipulator         = new Manipulator();
     figures             = new List <Figure>();
     figures.AddRange(manipulator.GetHandlers);
     figures.Add(tempGroup);
     undoLevels             = new Stack <int>();
     redoLevels             = new Stack <int>();
     figuresStartProperties = new List <Figure>();
 }
Ejemplo n.º 2
0
 public void Select(Graphics gr, List <Figure> figures, Group group, Manipulator manipulator, float x, float y)
 {
     foreach (var fig in figures)
     {
         if (fig.Touch(gr, x, y))
         {
             group.Clear();
             manipulator.Attach(fig);
             break;
         }
         else
         {
             manipulator.Clear(gr);
         }
     }
 }