private void setListenerAccepts(int listenerId, int localAccepts, int globalAccepts)
{
foreach (var listener in PeerCast.OutputListeners.Where(ol => GetObjectId(ol)==listenerId)) {
listener.LocalOutputAccepts = (OutputStreamType)localAccepts;
listener.GlobalOutputAccepts = (OutputStreamType)globalAccepts;
}
owner.Application.SaveSettings();
}