Example #1
0
 public MainWindow()
 {
     InitializeComponent();
     Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
     try
     {
         _devCount = CLNUIDevice.GetDeviceCount();
         if (_devCount == 0)
         {
             Environment.Exit(0);
         }
         for (int i = 0; i < _devCount; i++)
         {
             string devSerial = CLNUIDevice.GetDeviceSerial(i);
             cameras.Items.Add(string.Format("Kinect Serial: {0}", devSerial));
             cameraWindows[i] = new CameraWindow(devSerial);
             cameraWindows[i].Show();
         }
     }
     catch { }
 }
Example #2
0
 public MainWindow()
 {
     InitializeComponent();
     Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
     try
     {
         _devCount = CLNUIDevice.GetDeviceCount();
         if (_devCount == 0)
         {
             Environment.Exit(0);
         }
         for (int i = 0; i < _devCount; i++)
         {
             string devSerial = CLNUIDevice.GetDeviceSerial(i);
             cameras.Items.Add(string.Format("Kinect Serial: {0}", devSerial));
             cameraWindows[i] = new CameraWindow(devSerial);
             cameraWindows[i].Show();
         }
     }
     catch { }
 }