| | |
| | | } |
| | | |
| | | LoadEvent_FunctionCollection(btnCollection, function); |
| | | |
| | | if (function.Spk_Prefix == FunctionCategory.Curtain) |
| | | if (function.spk == SPK.CurtainRoller || function.spk == SPK.CurtainShades || |
| | | function.spk == SPK.CurtainSwitch || function.spk == SPK.CurtainTrietex ) |
| | | { |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Curtain/CurtainIcon.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/Curtain/CurtainOnIcon.png"; |
| | |
| | | LoadEvent_ControlTV(function as TV, btnPower); |
| | | } |
| | | |
| | | else if (function.Spk_Prefix == FunctionCategory.Music) |
| | | else if (function.spk == SPK.MusicStandard) |
| | | { |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Music/MusicIcon.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/Music/MusicOnIcon.png"; |
| | |
| | | UpdataFunctionStates(a31player); |
| | | }; |
| | | } |
| | | |
| | | |
| | | else |
| | | { |
| | |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Electrical/FanIcon.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/Electrical/FanOnIcon.png"; |
| | | break; |
| | | case SPK.ElectricTuyaAirCleaner: |
| | | btnIcon.SelectedImagePath = "FunctionIcon/HomePageIcon/AirCleanerIcon.png"; |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/HomePageIcon/AirCleanerIconOn.png"; |
| | | break; |
| | | case SPK.ElectricTuyaFan: |
| | | btnIcon.SelectedImagePath = "FunctionIcon/HomePageIcon/FanIcon.png"; |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/HomePageIcon/FanIconOn.png"; |
| | | break; |
| | | case SPK.ElectricTuyaWaterValve: |
| | | btnIcon.SelectedImagePath = "FunctionIcon/HomePageIcon/WaterValveIcon.png"; |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/HomePageIcon/WaterValveIconOn.png"; |
| | | break; |
| | | case SPK.ElectricTuyaWeepRobot: |
| | | btnIcon.SelectedImagePath = "FunctionIcon/HomePageIcon/WeepRobotIcon.png"; |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/HomePageIcon/WeepRobotIconOn.png"; |
| | | break; |
| | | } |
| | | break; |
| | | } |