| | |
| | | controlView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(88), |
| | | Y = Application.GetRealHeight(88 + 10), |
| | | Width = Application.GetRealWidth(327), |
| | | Height = Application.GetRealHeight(526), |
| | | BackgroundImagePath = "Public/Fragmentbg.png", |
| | |
| | | }; |
| | | controlView.AddChidren(btnSwitch); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Electric)).LoadTopView_FunctionTop(function, actionRefresh,false); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.EnergyMonitoring)).LoadTopView_FunctionTop(function, actionRefresh,false); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(function); |
| | |
| | | { |
| | | if (btnRunStatus == null) |
| | | return; |
| | | if(function.GetAttrState(FunctionAttributeKey.OnOff) == "off") |
| | | { |
| | | btnRunStatus.Text = ""; |
| | | return; |
| | | } |
| | | var runStatus = function.GetAttrState("run_status"); |
| | | if (Language.CurrentLanguage == "Chinese") |
| | | { |