bool LimitToP2PProtocols(bool yes) { if (reader != null) { if (yes) { Trace.WriteLine("Limit to P2P protocols: yes"); } else { Trace.WriteLine("Limit to P2P protocols: no"); } if (!LlcpInitiator.LimitToP2PProtocols(reader, yes)) { MessageBox.Show("Warning: problem with Control"); return(false); } } return(true); }