-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainForm.cs
39 lines (35 loc) · 1.33 KB
/
MainForm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace rec.robotino.api2.examples.camera
{
/// <summary>
/// This is the main form of this example.
/// It provides an user interface to enter the IP and connect to the robot,
/// a basic interface to drive Robotino, it shows the camera image and
/// displays the standard text output.
/// </summary>
public partial class MainForm : Form
{
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;
CameraControl cameraControl = new CameraControl(robot);
cameraControl.Dock = DockStyle.Fill;
tableLayoutPanel2.Controls.Add(driveControl);
tableLayoutPanel2.Controls.Add(cameraControl);
tableLayoutPanel1.Controls.Add(connectControl);
tableLayoutPanel1.Controls.Add(tableLayoutPanel2);
tableLayoutPanel1.Controls.Add(consoleControl);
}
}
}