Exemplo n.º 1
0
        protected void Page_Init(object sender, EventArgs e)
        {
            Home = SerDesHouse.Read();
            WebReader wbReader = new WebReader(Home);
            Home.Remote = new RemoteControl(wbReader, new List<IWriter> { this });
            Home.Remote.AddCommand(new SetLightCommand());

            IsRedact = false;

            RunSensor();
        }
Exemplo n.º 2
0
        protected void Page_Init(object sender, EventArgs e)
        {
            Home = SerDesHouse.Read();
            WebReader wbReader = new WebReader(Home);

            Home.Remote = new RemoteControl(wbReader, new List <IWriter> {
                this
            });
            Home.Remote.AddCommand(new SetLightCommand());

            IsRedact = false;

            RunSensor();
        }