/// <summary> /// Ввод правильного полигона /// </summary> /// <param name="newPoint"></param> /// <param name="isEnd"></param> private void InputRegularPolypog(Point newPoint, bool isEnd) { if (_regularPolygonCache == null) { _regularPolygonCache = new RegularPolygon(Color.Black, newPoint); _figureList.Add(_regularPolygonCache); } else if (!isEnd) { _regularPolygonCache.Add(); } if (isEnd) { _regularPolygonCache = null; } }