private void RelayRemovedSink(Gatekeeper sender, UPnPRelayDevice d) { RemoveInboundDevice(d); }
private void RelaySink(Gatekeeper sender, UPnPRelayDevice d) { AddNewInboundDevice(d); }
private void MainForm_Load(object sender, System.EventArgs e) { SharingOnLabel.Text = "Sharing on port " + this.PortNumber.ToString(); gk = new Gatekeeper(this.PortNumber); gk.OnEvent += new Gatekeeper.OnEventHandler(GKEventSink); gk.OnAction += new Gatekeeper.OnActionHandler(GKActionSink); gk.OnUPnPRelayDevice += new Gatekeeper.OnUPnPRelayDeviceHandler(RelaySink); gk.OnUPnPRelayDeviceRemoved += new Gatekeeper.OnUPnPRelayDeviceHandler(RelayRemovedSink); }