| | |
| | | btnbg.SelectedImagePath = "Collection/FunctionArmOnbg.png"; |
| | | } |
| | | |
| | | if (!function.online) |
| | | { |
| | | btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; |
| | | } |
| | | //if (!function.online) |
| | | //{ |
| | | // btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; |
| | | //} |
| | | } |
| | | |
| | | if (index == 0) |
| | |
| | | btnState.SelectedTextColor = CSS_Color.MainBackgroundColor; |
| | | btnState.TextColor = CSS_Color.MainColor;//PromptingColor1 |
| | | } |
| | | |
| | | //紧急求助 |
| | | else if (function.spk == SPK.SensorHelp) |
| | | { |
| | | btnName.TextColor = CSS_Color.MainBackgroundColor; |
| | | btnName.SelectedTextColor = CSS_Color.MainBackgroundColor; |
| | | btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_white.png"; |
| | | btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_white.png"; |
| | | } |
| | | |
| | | else |
| | | { |
| | | Button btnSwitch; |