void OnConnectionManager1Added(ConnectionManager1 service)
 {
     EventHandler<DiscoveryEventArgs<ConnectionManager1>> handler = ConnectionManager1Added;
     if (handler != null) {
         handler (this, new DiscoveryEventArgs<ConnectionManager1> (service));
     }
 }
        void OnConnectionManager1Added(ConnectionManager1 service)
        {
            EventHandler <DiscoveryEventArgs <ConnectionManager1> > handler = ConnectionManager1Added;

            if (handler != null)
            {
                handler(this, new DiscoveryEventArgs <ConnectionManager1> (service));
            }
        }
        void ClientServiceAdded(object sender, ServiceEventArgs args)
        {
            if (args.Service.Type != ConnectionManager1.ServiceType) return;

            try {
                ConnectionManager1 service = new ConnectionManager1 (args.Service);
                OnConnectionManager1Added (service);
            }
            catch
            {
            }
        }
        void ClientServiceAdded(object sender, ServiceEventArgs args)
        {
            if (args.Service.Type != ConnectionManager1.ServiceType)
            {
                return;
            }

            try {
                ConnectionManager1 service = new ConnectionManager1(args.Service);
                OnConnectionManager1Added(service);
            }
            catch
            {
            }
        }