Example #1
0
 protected void AddShape(BaseShape ob)
 {
     xmlShapes.Add(ob);
     if (ob is AreaShape)
     {
         LeSerializableShape friend = (ob as AreaShape).TextField;
         xmlShapes.Add(friend);
         ob.FriendIndex = friend.Index;
     }
 }
Example #2
0
 public void AddNewShape(MouseEventArgs e)
 {
     //if (myMenu.selectBack == false)
     {
         bool check = myMenu.CurShape.DrawMouseUp(e);
         if (check == true)
         {
             xmlShapes.Add(myMenu.CurShape);
         }
     }
 }