コード例 #1
0
ファイル: Window1.xaml.cs プロジェクト: mikey555/MIT-Kinect
        public Window1()
        {
            

            colorWindow = new MainWindow();
            nui = Runtime.Kinects[0];
            nui.Initialize(RuntimeOptions.UseColor);
            nui.NuiCamera.ElevationAngle = 0;

            


            // initialize grid
            gridSettings = new GridSettings(colorWindow.Width, colorWindow.Height);
            toleranceSettings = new ToleranceSettings();
            calibrationSettings = new CalibrationSettings();

            smoothSkeleton = new SmoothSkeleton();
       
            this.updateGrid();

            // this will set default crosshair heights
            colorWindow.changeRotationMode(gridSettings.rotation);

            InitializeComponent();

            Screen[] screens = Screen.AllScreens;
            findMonitorSizes(screens);
            
            // set windows' start positions
            colorWindow.WindowStartupLocation = WindowStartupLocation.Manual;
                // put the color window inside the secondary screen's bounds
            colorWindow.Top = screens[1].Bounds.Top;
            colorWindow.Left = screens[1].Bounds.Left;
            
            
            colorWindow.Show();



            toleranceOption1.IsChecked = true;
            gridSettings.setRotationMode(1);
            toggleRotationMode();

            
            
        }
コード例 #2
0
ファイル: MainMenu.xaml.cs プロジェクト: yolandax/799
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     MainWindow bodyLearn = new MainWindow(); //Create object of MainWindow
     bodyLearn.Show();
     this.Close();
 }