Example #1
0
        public Form1()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            registerServiceCallback = new RegisterServiceCallback(OnRegisterService);
            addPeerCallback         = new AddPeerCallback(OnAddPeer);
            removePeerCallback      = new RemovePeerCallback(OnRemovePeer);
            resolveServiceCallback  = new ResolveServiceCallback(OnResolveService);
            resolveAddressCallback  = new ResolveAddressCallback(OnResolveAddress);
            readMessageCallback     = new ReadMessageCallback(OnReadMessage);

            this.Load += new System.EventHandler(this.Form1_Load);

            this.AcceptButton = button1;
        }
Example #2
0
        public Form1()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            registerServiceCallback	= new RegisterServiceCallback(OnRegisterService);
            addPeerCallback			= new AddPeerCallback(OnAddPeer);
            removePeerCallback		= new RemovePeerCallback(OnRemovePeer);
            resolveServiceCallback	= new ResolveServiceCallback(OnResolveService);
            resolveAddressCallback	= new ResolveAddressCallback(OnResolveAddress);
            readMessageCallback		= new ReadMessageCallback(OnReadMessage);

            this.Load += new System.EventHandler(this.Form1_Load);

            this.AcceptButton = button1;
        }