Esempio n. 1
0
 public void Construct(IComputerBuilder computerBuilder)
 {
     computerBuilder.BuildScreenSize();
     computerBuilder.BuildScreenTouch();
     computerBuilder.BuildOperatingSystem();
     computerBuilder.BuildMemory();
 }
Esempio n. 2
0
        public Computer Construct()
        {
            _builder.BuildMainBoard();
            _builder.BuildCpu();
            _builder.BuildMemory();
            _builder.BuildHardDisk();
            _builder.BuildKeyBoard();
            if (_builder.HasDisplayDevice)
            {
                _builder.BuildDisplayDevice();
            }
            _builder.BuildMouse();

            return(_builder.CreateComputer());
        }