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; } }
public void AddNewShape(MouseEventArgs e) { //if (myMenu.selectBack == false) { bool check = myMenu.CurShape.DrawMouseUp(e); if (check == true) { xmlShapes.Add(myMenu.CurShape); } } }