示例#1
0
        public LampDataObject GetStatus()
        {
            LightService   svc = CurrentService;
            LampDataObject obj = new LampDataObject
            {
                burn = svc.On
            };

            return(obj);
        }
示例#2
0
        public void SetStatus(LampDataObject obj)
        {
            LightService svc = CurrentService;

            svc.On = obj.burn;
        }