예제 #1
0
        public MainForm(Robot robot)
        {
            InitializeComponent();

            ConnectControl connectControl = new ConnectControl(robot);

            connectControl.Dock = DockStyle.Fill;
            DriveControl   driveControl   = new DriveControl(robot);
            ConsoleControl consoleControl = new ConsoleControl();

            consoleControl.Dock = DockStyle.Fill;
            KinectControl kinectControl = new KinectControl(robot);

            kinectControl.Dock = DockStyle.Fill;
            DepthVideoControl depthVideoControl = new DepthVideoControl(kinectControl);

            tableLayoutPanel2.Controls.Add(driveControl);
            tableLayoutPanel2.Controls.Add(kinectControl);

            tableLayoutPanel1.Controls.Add(connectControl);
            tableLayoutPanel1.Controls.Add(tableLayoutPanel2);
            tableLayoutPanel1.Controls.Add(consoleControl);
        }
예제 #2
0
 public DepthVideoControl(KinectControl kinectcontrol)
 {
     this.kinectcontrol = kinectcontrol;
     InitializeComponent();
 }