internal void EditMicrophone(objectsMicrophone om, IWin32Window owner = null)
{
VolumeLevel vlf = null;
for (int index = 0; index < _pnlCameras.Controls.Count; index++)
{
Control c = _pnlCameras.Controls[index];
if (c.GetType() != typeof(VolumeLevel)) continue;
var vl = (VolumeLevel)c;
if (vl.Micobject.id == om.id)
{
vlf = vl;
break;
}
}
if (vlf != null)
{
var am = new AddMicrophone { VolumeLevel = vlf, MainClass = this };
am.ShowDialog(owner ?? this);
am.Dispose();
}
}