| | |
| | | functionRow.AddChidren(btnFunctionIcon); |
| | | switch (function.functionCategory) |
| | | { |
| | | case FunctionType.AC: |
| | | case FunctionCategory.AC: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon.png"; |
| | | break; |
| | | case FunctionType.Curtain: |
| | | case FunctionCategory.Curtain: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Curtain/CurtainThinIcon.png"; |
| | | break; |
| | | case FunctionType.Light: |
| | | case FunctionCategory.Light: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Light/LightThinIcon.png"; |
| | | break; |
| | | case FunctionType.FloorHeating: |
| | | case FunctionCategory.FloorHeating: |
| | | btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/FloorHeating/FloorHeatingThinIcon.png"; |
| | | break; |
| | | } |
| | |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | } |
| | | dialogBodyView.MouseUpEventHandler = (sender, e) => { |
| | | dialogBodyView.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | dialog.Close(); |
| | | }; |
| | | |