| | |
| | | public class AddSchedule : FrameLayout |
| | | { |
| | | VerticalScrolViewLayout bodyView; |
| | | FrameLayout devicesListView; |
| | | Action<Timer> action; |
| | | List<Common> roomDeviceList = new List<Common>(); |
| | | List<string> roomNameList = new List<string> (); |
| | |
| | | }; |
| | | devicesView.AddChidren (btnDeviceTitle); |
| | | |
| | | var devicesListView = new FrameLayout () { |
| | | devicesListView = new FrameLayout () { |
| | | Height = Application.GetRealHeight (130 * roomDeviceList.Count), |
| | | }; |
| | | bodyView.AddChidren (devicesListView); |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | //(1)Success 则调用此接口成功 |
| | | //(2)NoRecord 住宅未绑定网关! |
| | |
| | | private static void InitDeviceListView (List<Common> roomDeviceList, List<DeviceInfo> timerControlDeviceList, FrameLayout devicesListView) |
| | | { |
| | | devicesListView.RemoveAll (); |
| | | |
| | | System.Threading.Tasks.Task.Run (() => { |
| | | try { |
| | | int iniIndex = 0; |
| | |
| | | i++; |
| | | } |
| | | } |
| | | |
| | | #if __IOS__ |
| | | |
| | | |
| | | #else |
| | | //刷新devicesListView 高度 |
| | | devicesListView.Height = Application.GetRealHeight (130 * roomDeviceList.Count); |
| | | #endif |
| | | |
| | | foreach (var deviceCommon2 in roomDeviceList) { |
| | | if (deviceCommon2 == null) |
| | | continue; |