public void Undo(IDataCommand dataCommand)
        {
            ILight light = dataCommand.GetDevice() as ILight;

            if (light != null)
            {
                light.DecrementLight();
            }
        }
Ejemplo n.º 2
0
        public void DecrementLight()
        {
            ILight tv = GetTv();

            if (tv != null)
            {
                tv.DecrementLight();
            }
        }