| | |
| | | switch (function.functionType) |
| | | { |
| | | case FunctionType.AC: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon.png"; |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon1.png"; |
| | | break; |
| | | case FunctionType.FloorHeating: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/FloorHeating/FloorHeatingThinIcon.png"; |
| | |
| | | case FunctionCategory.Light: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Light/LightThinIcon.png"; |
| | | break; |
| | | case FunctionCategory.SwitchDevice: |
| | | switch (function.functionType) |
| | | { |
| | | case FunctionType.Socket: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Socket/SocketThinIcon.png"; |
| | | break; |
| | | } |
| | | break; |
| | | case FunctionCategory.Electrical: |
| | | switch (function.functionType) |
| | | { |
| | | case FunctionType.Fan: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Electrical/FanThinIcon.png"; |
| | | break; |
| | | case FunctionType.TV: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Electrical/TVThinIcon.png"; |
| | | break; |
| | | } |
| | | break; |
| | | case FunctionCategory.Scene: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Scene/SceneIcon.png"; |
| | | break; |
| | | case FunctionCategory.Music: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Music/MusicThinIcon.png"; |
| | | break; |
| | | } |
| | | |
| | | if (!btnAllocated.IsSelected) |