public void Undo(IDataCommand dataCommand) { ILight light = dataCommand.GetDevice() as ILight; if (light != null) { light.DecrementLight(); } }
public void DecrementLight() { ILight tv = GetTv(); if (tv != null) { tv.DecrementLight(); } }