private void CbxDevice_SelectedIndexChanged(object sender, EventArgs e)
        {
            m_rescanResults = null;
            CbxLocation.Items.Clear();
            var selected = GetSelectedDevice();

            if (selected != null)
            {
                CbxLocation.Items.Add(new LocationBase {
                    Id = -1, Kind = LocationBaseKind.Local, Name = "All"
                });
                CbxLocation.Items.AddRange(DevicePersistense.GetLocationsForTitleUpdate(selected.Id).ToArray());
            }
            CbxLocation.Enabled = true;
            BtnApply.Enabled    = false;
        }
 public ActionResult GetLocationBases(long deviceid)
 {
     return(Json(DevicePersistense.GetLocationsForTitleUpdate(deviceid), JsonRequestBehavior.AllowGet));
 }