/// <summary> /// The main entry point for the application. /// </summary> //[STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new DrawingTest()); DrawingControl.DrawingController dd = new DrawingControl.DrawingController(); Application.Run(dd.projectorWin); }
//private DrawingTest dt; public MainWindow() { DataContext = this; InitializeComponent(); this.Show(); this.Topmost = true; drawingController = new DrawingController(); drawingStatus = new DrawingStatus(); drawingStatus.eye.x = 0.0f; drawingStatus.eye.y = 5.0f; drawingStatus.eye.z = 25.0f; drawingStatus.kinect.x = 0.0f; drawingStatus.kinect.y = 0.34f; drawingStatus.kinect.z = 0.0f; drawingController.ChangeStatus(drawingStatus); // initialize kinect InitKinect(); }