Пример #1
0
        private void _GenerateClick()
        {
            if (!IsPositiveValidity())
            {
                return;
            }

            CanvasItems.Clear();
            Canvas canvas = new Canvas();
            RectangleFrameDiagrid grid = new RectangleFrameDiagrid(ColumnCount, RowCount);

            int triMin = TriangleMinSize;
            int triMax = TriangleMaxSize;
            var mags   = Magnifications.Split(',').Select(n => Convert.ToInt32(n)).ToArray();
            var iters  = Iterations.Split(',').Select(n => Convert.ToInt32(n)).ToArray();;

            (int, int)[] magIters = mags.Zip(iters, (a, b) => new ValueTuple <int, int>(a, b)).ToArray();