Ejemplo n.º 1
0
        public void createProject()
        {
            IPart pBasment = new Basement()
            {
                name  = "Basement",
                price = rnd.Next(),
                count = 3,
                order = 0
            };

            parts.Add(pBasment);
        }
Ejemplo n.º 2
0
        public void createProject()
        {
            IPart pBasment = new Basement()
            {
                name  = "Basement",
                price = rnd.Next(0, 10000),
                count = 1,
                order = 1
            };
            IPart pWall = new Wall()
            {
                name  = "Wall",
                price = rnd.Next(0, 10000),
                count = 4,
                order = 2
            };
            IPart pWindow = new Window()
            {
                name  = "Window",
                price = rnd.Next(0, 10000),
                count = 4,
                order = 3
            };
            IPart pDoor = new Door()
            {
                name  = "Door",
                price = rnd.Next(0, 10000),
                count = 1,
                order = 4
            };
            IPart pRoof = new Roof()
            {
                name  = "Roof",
                price = rnd.Next(0, 10000),
                count = 1,
                order = 5
            };

            parts.Add(pBasment);
            parts.Add(pWall);
            parts.Add(pDoor);
            parts.Add(pRoof);
            parts.Add(pWindow);
        }