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