public static void AddElement(string name, FigureColor color, FigureType type, Point FirstPoint, Point LastPoint, object data, int[] RGBcolor)
        {
            //TODO

            if (type == FigureType.Cylinder)
            {
                _elements.Add(new Cylinder(FirstPoint, LastPoint, (double)data, colorDictionary.GetColor(color, RGBcolor))
                {
                    Name = name
                });
                _elements[_elements.Count - 1].Id = name;
            }
            if (type == FigureType.Cuboid)
            {
                double[] dataArray = (double[])data;
                _elements.Add(new Cube(FirstPoint, LastPoint, dataArray[0], dataArray[1], colorDictionary.GetColor(color, RGBcolor))
                {
                    Name = name
                });
            }
            //   throw new NotImplementedException();
        }