コード例 #1
0
        public void Undo(IDataCommand dataCommand)
        {
            IVolume volume = dataCommand.GetDevice() as IVolume;

            if (volume != null)
            {
                volume.DecrementVolume();
            }
        }
コード例 #2
0
        public void DecrementVolume()
        {
            IVolume tv = GetTv();

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