| | |
| | | }; |
| | | totalElectricityView.AddChidren(btnTotalElectricity); |
| | | |
| | | |
| | | double totalNumber = 0.00; |
| | | double.TryParse(device.GetAttrState(key), out totalNumber); |
| | | var btnTotalNumber = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(27), |
| | |
| | | TextSize = 49, |
| | | TextColor = 0xFF030D1C, |
| | | TextAlignment = TextAlignment.Center, |
| | | Text = device.GetAttrState(key), |
| | | Text = totalNumber.ToString("F2"), |
| | | }; |
| | | totalElectricityView.AddChidren(btnTotalNumber); |
| | | |
| | |
| | | //viewb.Visible = true; |
| | | //viewc.Visible = true; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip1; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | historyDataView.Height = Application.GetRealWidth(330); |
| | | }; |
| | | btnShowHistroyData_Month.MouseUpEventHandler += (sender, e) => { |
| | | totalElectricityView.RemoveFromParent(); |
| | |
| | | //viewb.Visible = true; |
| | | //viewc.Visible = true; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip2; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | historyDataView.Height = Application.GetRealWidth(330); |
| | | }; |
| | | btnShowHistroyData_Year.MouseUpEventHandler += (sender, e) => { |
| | | totalElectricityView.RemoveFromParent(); |
| | |
| | | //viewb.Visible = true; |
| | | //viewc.Visible = true; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip3; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | historyDataView.Height = Application.GetRealWidth(330); |
| | | }; |
| | | btnShowHistroyData_Total.MouseUpEventHandler += (sender, e) => { |
| | | myEchartsView_Line.RemoveFromParent(); |