public FloorPlanControl GetFloorPlan(int floorPlanId)
{
for (int index = 0; index < _pnlCameras.Controls.Count; index++)
{
Control c = _pnlCameras.Controls[index];
if (c.GetType() != typeof(FloorPlanControl)) continue;
var fp = (FloorPlanControl)c;
if (fp.Fpobject.id != floorPlanId) continue;
return fp;
}
return null;
}