iSpyApplication.MainForm.GetFloorPlan C# (CSharp) Method

GetFloorPlan() public method

public GetFloorPlan ( int floorPlanId ) : FloorPlanControl
floorPlanId int
return FloorPlanControl
        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;
        }
MainForm