| | |
| | | /// <summary> |
| | | /// 当前窗体 |
| | | /// </summary> |
| | | static FrameLayout bodyView; |
| | | public static FunctionPage bodyView; |
| | | /// <summary> |
| | | /// 楼层选择下拉图标 |
| | | /// </summary> |
| | |
| | | bodyView = this; |
| | | functionList = new List<Function>(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 重载界面 |
| | | /// </summary> |
| | | public void ReLoadPage() |
| | | { |
| | | if (bodyView != null) |
| | | { |
| | | try |
| | | { |
| | | bodyView.RemoveAll(); |
| | | LoadPage(this.titleId); |
| | | functionList = new List<Function>(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"FunctionPage ReloadPage error :\r\n {ex.Message}"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public void LoadPage(int titleId_out) |
| | |
| | | |
| | | if (titleId == StringId.Lights) |
| | | { |
| | | functionList.AddRange(FunctionList.List.groupControls); |
| | | //functionList.AddRange(FunctionList.List.groupControls); |
| | | functionList.AddRange(FunctionList.List.GetLightList()); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | else if(titleId == StringId.HorseRaceLamp) |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetSeries()); |
| | | } |
| | | else if (titleId == StringId.AC) |
| | | { |
| | |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetAirFreshList()); |
| | | } |
| | | else if(titleId == StringId.MechanicalArm) |
| | | else if (titleId == StringId.MechanicalArm) |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetMechanicalArmList()); |
| | | } |
| | | else if(titleId == StringId.SecurityMonitoring) |
| | | else if (titleId == StringId.SecurityMonitoring) |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetIpCamImouList()); |
| | | } |