コード例 #1
0
ファイル: Form1.cs プロジェクト: AlexM4Q/GSCCW
        /// <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;
            }
        }