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();
        }
示例#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();
        }