示例#1
0
 internal void Paste()
 {
     if (Coppy != null)
     {
         try
         {
             Shape  s = (Shape)MyDeSerialize();
             PointF p = s.Location;
             s.Location = Coppy;
             if (s.GetType().Equals(typeof(GroupShape)))
             {
                 s.GroupTranslate(p);
                 ShapeList.Add(s);
             }
             else
             {
                 ShapeList.Add(s);
             }
         }catch (Exception e)
         {
         }
     }
 }