public SmartHouse Construct(SmartHouseBuilder Builder) { this.Builder = Builder; Builder.BuildSensors(); Builder.BuildExecutives(); Builder.BuildPanels(); Builder.BuildMultimedia(); Builder.BuildControllers(); Builder.BuildNetworks(); return(Builder.GetResult()); }
// Конструирование объекта public void Construct() { if (this.Builder != null) { Builder.BuildSensors(); Builder.BuildExecutives(); Builder.BuildPanels(); Builder.BuildMultimedia(); Builder.BuildControllers(); Builder.BuildNetworks(); } }