Example #1
0
 static void Main()
 {
     backend = new KinectMultiBackend();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     window = new MainWindow(backend);
     Application.Run(window);
 }
Example #2
0
 public MainWindow(KinectMultiBackend backend)
 {
     InitializeComponent();
     this.backend = backend;
     this.githubLink.LinkClicked += new LinkLabelLinkClickedEventHandler(this.OpenGithub);
     this.kinectView.Paint       += new PaintEventHandler(this.Redraw);
     this.timer.Interval          = 33;
     this.timer.Tick             += new EventHandler(this.Frame);
     this.timer.Start();
     this.kinectSelect.Items.Add("No Preview");
     this.kinectSelect.SelectedIndex = 0;
     this.connectionPage.Enter      += ConnectionPage_Enter;
 }