| | |
| | | |
| | | var btnTip = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(289), |
| | | Y = Application.GetRealWidth(289), |
| | | Height = Application.GetRealHeight(41), |
| | | Width = Application.GetRealWidth(300), |
| | | TextAlignment = TextAlignment.Center, |
| | |
| | | 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 = false; |
| | | viewc.Visible = false; |
| | | btnTip.TextID = StringId.AirSwitchP3HistroyTip3; |
| | | historyDataView.Height = Application.GetRealHeight(330); |
| | | historyDataView.Height = Application.GetRealWidth(330); |
| | | }; |
| | | btnShowHistroyData_Total.MouseUpEventHandler += (sender, e) => { |
| | | myEchartsView_Line.RemoveFromParent(); |