示例#1
0
        public override List<Device> GetDevicesInZone(Zone zone)
        {
            if (zone.Devices != null && zone.Devices.Count > 0)
                return zone.Devices;

            return new List<Device>();
        }
示例#2
0
        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));
        }
示例#3
0
 public abstract List<Device> GetDevicesInZone(Zone zone);