Example #1
0
 public void Add(Figure figure, bool needToClear)
 {
     figures.Add(figure);
     undoLevels.Push(1);
     undoRedo.InsertInUnDoRedoForCreate(figure, needToClear);
     if (needToClear)
     {
         redoLevels.Clear();
     }
 }