static void Main(string[] args) { Builder builder = new SHwithOperatorPanel_RC(); Director director = new Director(builder); director.Construct(); SmartHouse SH = builder.GetSmartHouse(); Console.WriteLine(SH.ToString()); builder = new SHwithOperatorPanel_CP(); director = new Director(builder); director.Construct(); SH = builder.GetSmartHouse(); Console.WriteLine(SH.ToString()); Console.ReadLine(); }
public void CreateSmartHouse() { SmartHouse = new SmartHouse(); }