| | |
| | | |
| | | //回退刷新信息事件 |
| | | actionRefresh = () => { |
| | | btnFunctionName.Text = btnFunctionName_Out.Text = tv.name; |
| | | btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = tv.GetRoomListName(); |
| | | tv.UpdataFuncitonInfo(); |
| | | btnFunctionName.Text = btnFunctionName_Out.Text = function.name; |
| | | btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = function.GetRoomListName(); |
| | | function.UpdataFuncitonInfo(); |
| | | }; |
| | | } |
| | | |
| | |
| | | void LoadCollectionEvent() |
| | | { |
| | | btnCollection.MouseUpEventHandler += (sender, e) => { |
| | | btnCollection.IsSelected = tv.collect = btnCollection_Out.IsSelected = !btnCollection.IsSelected; |
| | | tv.CollectFunction(); |
| | | btnCollection.IsSelected = function.collect = btnCollection_Out.IsSelected = !btnCollection.IsSelected; |
| | | function.CollectFunction(); |
| | | }; |
| | | } |
| | | |
| | |
| | | { |
| | | btnChangeTVAV.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.AV_TV); |
| | | tvTemp.ControlTV(InfraredCode_TV.AV_TV,function); |
| | | }; |
| | | btnChlPlus.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.ChannelUp); |
| | | tvTemp.ControlTV(InfraredCode_TV.ChannelUp, function); |
| | | }; |
| | | btnChlReduce.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.ChannelDown); |
| | | tvTemp.ControlTV(InfraredCode_TV.ChannelDown, function); |
| | | }; |
| | | btnVolPlus.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.VolUp); |
| | | tvTemp.ControlTV(InfraredCode_TV.VolUp, function); |
| | | }; |
| | | btnVolReduce.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.VolDown); |
| | | tvTemp.ControlTV(InfraredCode_TV.VolDown, function); |
| | | }; |
| | | btnBack.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.Back); |
| | | tvTemp.ControlTV(InfraredCode_TV.Back, function); |
| | | }; |
| | | |
| | | btnMenu.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.Menu); |
| | | tvTemp.ControlTV(InfraredCode_TV.Menu, function); |
| | | }; |
| | | btn123.MouseUpEventHandler = (sender, e) => |
| | | { |
| | |
| | | }; |
| | | btnMute.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.Mute); |
| | | tvTemp.ControlTV(InfraredCode_TV.Mute, function); |
| | | }; |
| | | btnPower.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | tv.ControlTV(InfraredCode_TV.Power); |
| | | tvTemp.ControlTV(InfraredCode_TV.Power, function); |
| | | }; |
| | | |
| | | btnTopMenuUp.MouseUpEventHandler = (sender, e) => { |
| | | tv.ControlTV(InfraredCode_TV.Up); |
| | | tvTemp.ControlTV(InfraredCode_TV.Up, function); |
| | | }; |
| | | btnTopMenuLeft.MouseUpEventHandler = (sender, e) => { |
| | | tv.ControlTV(InfraredCode_TV.Left); |
| | | tvTemp.ControlTV(InfraredCode_TV.Left, function); |
| | | }; |
| | | btnTopMenuRight.MouseUpEventHandler = (sender, e) => { |
| | | tv.ControlTV(InfraredCode_TV.Right); |
| | | tvTemp.ControlTV(InfraredCode_TV.Right, function); |
| | | }; |
| | | btnTopMenuDown.MouseUpEventHandler = (sender, e) => { |
| | | tv.ControlTV(InfraredCode_TV.Down); |
| | | tvTemp.ControlTV(InfraredCode_TV.Down, function); |
| | | }; |
| | | btnOk.MouseUpEventHandler = (sender, e) => { |
| | | tv.ControlTV(InfraredCode_TV.Confrim); |
| | | tvTemp.ControlTV(InfraredCode_TV.Confrim, function); |
| | | }; |
| | | } |
| | | |