| | |
| | | this.EndHeaderRefreshing(); |
| | | Common.ApiUtlis.Ins.DownloadData(); |
| | | LoadContentView(); |
| | | if(!CurShowTypeIsFunction) |
| | | { |
| | | contentView.PageIndex = 1; |
| | | } |
| | | }; |
| | | |
| | | #region topView |
| | |
| | | |
| | | FunctionList.List.Functions.Add(new Function() |
| | | { |
| | | spk = SPK.SensorDryContact, |
| | | name = "干接点", |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes(){ key = "status",curValue= "on",state = "on" }, |
| | | }, |
| | | }); |
| | | |
| | | FunctionList.List.Functions.Add(new Function() |
| | | { |
| | | spk = SPK.AirSwitch, |
| | | name = "智能空开", |
| | | attributes = new List<FunctionAttributes>() |
| | |
| | | sceneFunctionView = new VerticalScrolViewLayout(); |
| | | contentView.AddChidren(sceneFunctionView); |
| | | LoadSceneFunctionControlZone(); |
| | | contentView.PageIndex = 0; |
| | | |
| | | if (CurShowTypeIsFunction) |
| | | { |
| | | contentView.PageIndex = 0; |
| | | }else |
| | | { |
| | | contentView.PageIndex = 1; |
| | | } |
| | | |
| | | LoadEvent_ChangeShowedFunctionType(); |
| | | |
| | |
| | | sceneFunctionView = new VerticalScrolViewLayout(); |
| | | contentView.AddChidren(sceneFunctionView); |
| | | LoadSceneFunctionControlZone(); |
| | | contentView.PageIndex = 0; |
| | | |
| | | if (CurShowTypeIsFunction) |
| | | { |
| | | contentView.PageIndex = 0; |
| | | } |
| | | else |
| | | { |
| | | contentView.PageIndex = 1; |
| | | } |
| | | |
| | | |
| | | LoadEvent_ChangeShowedFunctionType(); |