public ControlWindow(ControllerInterface controller) { serialCntrl = controller; InitializeComponent(); fanDataObject = new FanControlDO(controller); this.DataContext = fanDataObject; ResponseCallback fanCallback = ListFans; serialCntrl.Request(1, fanCallback); // start Udp server udpServer = new FanUdpServer(); udpServer.Run(fanDataObject); }