| | |
| | | { |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | DB_ResidenceData.residenceData.GatewayType = 0; |
| | | DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | DriverLayer.Control.Ins.OpenUdp(6000); |
| | | //DB_ResidenceData.residenceData.GatewayType = 0; |
| | | //DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | }); |
| | | }; |
| | | #endif |
| | |
| | | |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | DB_ResidenceData.residenceData.GatewayType = 0; |
| | | DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | //DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | }); |
| | | } |
| | | |
| | |
| | | btnPower.IsSelected = false; |
| | | Music.SendMethod.Pause(a31player); |
| | | a31player.A31PlayStatus.status = "pause"; |
| | | a31player.trait_on_off.value = "off"; |
| | | a31player.trait_on_off.curValue = "off"; |
| | | } |
| | | else |
| | | { |
| | | btnPower.IsSelected = true; |
| | | Music.SendMethod.Play(a31player); |
| | | a31player.A31PlayStatus.status = "play"; |
| | | a31player.trait_on_off.value = "on"; |
| | | a31player.trait_on_off.curValue = "on"; |
| | | } |
| | | UpdataFunctionStates(a31player); |
| | | }; |