public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); addServiceCallback = new AddServiceCallback(OnAddService); removeServiceCallback = new RemoveServiceCallback(OnRemoveService); resolveServiceCallback = new ResolveServiceCallback(OnResolveService); this.Load += new System.EventHandler(this.Form1_Load); }
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; }