static void Main(string[] args) { Sensor s = new Sensor(); KinectProgram k = new KinectProgram(s); Console.WriteLine("Press any key to Exit"); Console.ReadLine(); }
public KinectProgram(Sensor abbSensor) { this.abbSensor = abbSensor; this.abbSensor.Start(); StartKinectSt(); }
static void Main(string[] args) { Sensor s = new Sensor(); Application.Run(new ControlPanel(s)); Console.WriteLine("Press any key to Exit"); Console.ReadLine(); }
public ControlPanel(Sensor sensor) { this.sensor = sensor; sensor.Start(); InitializeComponent(); }