public SimpleSockKnitModel(BaseSockModel bm, double plotX, double plotY) : base(bm, plotX, plotY)
 {
     _currRow             = 0;
     _size                = 37;
     _currentKnittingSize = "Вяжем носки " + _size + " размера.";
     sockModel.Toe        = (double)_size / 1.5 + 1.5;
     countMainPart(sockModel.Toe, counted4NeedleStitch);
     setKnitRowsDescription();
 }
        public BaseKnitModel(BaseSockModel sm, double plotnostX, double PlotnostY)
        {
            sockModel = sm;
            PlotX     = plotnostX;
            PlotY     = PlotnostY;
            double quantityStitchPred = sm.Thick * PlotX / 10.0;
            int    need1stich         = (int)(quantityStitchPred / 4);
            int    need4stich         = need1stich * 4 - quantityStitchPred < -3 ? (need1stich + 1) * 4 : need1stich * 4;

            need1stich           = need4stich / 4;
            counted4NeedleStitch = need4stich;
            _mangeta             = new List <int>();
            for (int i = 0; i < CountRow(sm.Mangeta); i++)
            {
                _mangeta.Add(need4stich);
            }

            _top = new List <int>();
            for (int i = 0; i < CountRow(sm.Top); i++)
            {
                _top.Add(need4stich);
            }
            //_toe = new List<int>();
            //for (int i = 0; i < CountDecreaseRow(need4stich, decrease); i++)
            //{
            //    _toe.Add(need4stich - decrease * (i + 1));
            //}
            CountDecreaseRow(need4stich, decrease);

            int heelRest = need4stich / 6;

            _heel = new List <int>()
            ;
            for (int i = 0; i < heelRest * 2; i++)
            {
                //_heel.Add(need1stich*2 -i*2-2);
                _heel.Add(need1stich * 2 - i);
            }
            for (int i = 0; i < 2; i++)
            {
                _heel.Add(need4stich);
            }
            for (int i = heelRest * 2 - 1; i > -1; i--)
            {
                _heel.Add(need1stich * 2 - i);
            }
            countMainPart(sm.Toe, need4stich);
        }