| | |
| | | TextSize = 49, |
| | | TextColor = 0xFF030D1C, |
| | | TextAlignment = TextAlignment.Center, |
| | | Text = device.GetAttrState(FunctionAttributeKey.TotalElectricity), |
| | | Text = device.GetAttrState(key), |
| | | }; |
| | | totalElectricityView.AddChidren(btnTotalNumber); |
| | | |
| | | |
| | | btnShowHistroyData_Day.MouseUpEventHandler += (sender, e) => { |
| | | totalElectricityView.RemoveFromParent(); |
| | |
| | | //viewa.Visible = true; |
| | | //viewb.Visible = true; |
| | | //viewc.Visible = true; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip1; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | }; |
| | | btnShowHistroyData_Month.MouseUpEventHandler += (sender, e) => { |
| | |
| | | //viewa.Visible = true; |
| | | //viewb.Visible = true; |
| | | //viewc.Visible = true; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip2; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | }; |
| | | btnShowHistroyData_Year.MouseUpEventHandler += (sender, e) => { |
| | |
| | | //viewa.Visible = true; |
| | | //viewb.Visible = true; |
| | | //viewc.Visible = true; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip3; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | }; |
| | | btnShowHistroyData_Total.MouseUpEventHandler += (sender, e) => { |