Exemplo n.º 1
0
        private void AddPoint_Click(object sender, EventArgs e)
        {
            if (GetPointY.Length > 0 && GetPointX.Length > 0)
            {
                int x = Int32.Parse(GetPointX);
                GetPointX = "";
                int y = Int32.Parse(GetPointY);
                GetPointY = "";
                int[] point = { x, y };

                ListPoints.Add(point);
                ListPointDesc.Add($"Вершина с координатой: {x}; {y}");

                setListBoxPoints();
            }
        }