public MainWindow() { InitializeComponent(); this.DataContext = KinectDataContext.Instance; this.imageBuilder = new ImageBuilder(640, 480); this.udpSender = new UdpSender(); initSensor(); worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_Completed; }
public void AttachBuilder(ImageBuilder builder) { this.imgBuilder = builder; }