Пример #1
0
        static void CreateClass(ref Domain domain)
        {
            string className = GetClassName(domain);

            Color color = GetClassColor(domain, className);

            domain.AddClass(className, color);

            bool finishedClass = false;

            while (!finishedClass)
            {
                string shapeName = GetShapeName(domain, className, ref finishedClass);
                if (shapeName == "..")
                {
                    break;
                }

                Color shapeColor = GetShapeColor(domain, shapeName);

                domain.AddShape(shapeName, shapeColor, className);
            }
        }