internal void EditFloorplan(objectsFloorplan ofp, IWin32Window owner = null)
{
FloorPlanControl fpc = null;
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 != ofp.id) continue;
fpc = fp;
break;
}
if (fpc != null)
{
var afp = new AddFloorPlan { Fpc = fpc, MainClass = this };
afp.ShowDialog(owner ?? this);
afp.Dispose();
fpc.Invalidate();
}
}