| | |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(600), |
| | | ScrollEnabled = false |
| | | ScrollEnabled = sensorList.Count > 6 |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | |
| | | bool initTitleButton = true; |
| | | |
| | | int index = 1; |
| | | try |
| | | { |
| | | new System.Threading.Thread(() => |
| | | { |
| | | foreach (var tempSensor in sensorList) |
| | | { |
| | | if(index > 6) |
| | | if (index >= 6) |
| | | { |
| | | break; |
| | | } |
| | |
| | | { |
| | | continue; |
| | | } |
| | | contentView.ScrollEnabled = true; |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (initTitleButton) |
| | | { |
| | | Button btnOthreTitle = new Button() |
| | |
| | | SelectedImagePath = "FunctionIcon/EnvironmentalScience/DiagramIconOn.png", |
| | | }; |
| | | otherInfoView.AddChidren(btnShowData1); |
| | | btnShowData1.MouseUpEventHandler = (sender, e) => { |
| | | btnShowData1.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | btnShowData1.IsSelected = !btnShowData1.IsSelected; |
| | | if (btnShowData1.IsSelected) |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(12), |
| | | }); |
| | | |
| | | }); |
| | | System.Threading.Thread.Sleep(50); |
| | | } |
| | | }).Start(); |
| | | } |
| | | catch(Exception ex) |
| | | { |
| | | MainPage.Log($"加载传感器异常xx:{ex.Message}"); |
| | | } |
| | | #endregion |
| | | new TopViewDiv(bodyView, Language.StringByID(sensorTemp.GetFunctionTypeNameId(function.spk))).LoadTopView(); |