public override List<Device> GetDevicesInZone(Zone zone) { if (zone.Devices != null && zone.Devices.Count > 0) return zone.Devices; return new List<Device>(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var server = TinyIoC.TinyIoCContainer.Current.Resolve<IHmdServer>(); this.zone = null; var zoneId = this.Intent.GetStringExtra(PARAMS_ID); if (!string.IsNullOrEmpty(zoneId)) this.zone = server.GetZone(zoneId); this.ExpandableListView.Clickable = true; this.ExpandableListView.ChildClick += (sender, e) => { this.childClick(e.GroupPosition, e.ChildPosition); }; if (this.zone != null) this.SetListAdapter(new ZoneContentExpandableGroupAdapter(this, this.zone)); }
public abstract List<Device> GetDevicesInZone(Zone zone);