public MainForm() { InitializeComponent(); host = new CRobotHost(this); camera = new CWebcam(livePanel, null); camera.Initialize(); camera.SetReady(); }
/// <summary> /// Constructor /// </summary> /// <param name="ui">The user interface for this Host</param> public Host(UI ui) { m_UI = ui; // The user interface m_RobotHost = new CRobotHost(this); // The CRobotHost that will handle communication m_pixelsperfoot = 2.0; // This is the floorplan scale, and we may not need it loadSettings(); }
public MainForm() { InitializeComponent(); host = new CRobotHost(this); camera = new CWebcam(livePanel, null, false); camera.Initialize(); camera.SetReady(); driveBackground = new Bitmap("driveBackground2.png"); g = Graphics.FromHwnd(drivePanel.Handle); }
public MainForm() { InitializeComponent(); m_host = new CRobotHost(this); m_destImage = Image.FromFile("Images\\destImage.png"); m_camera = new CWebcam(livePanel, null, false); m_camera.Initialize(); m_camera.SetReady(); m_center = new Point(floorPlanPanel.Width / 2, floorPlanPanel.Height / 2); m_fg = Graphics.FromHwnd(floorPlanPanel.Handle); m_pixelsperfoot = 2.0; m_callback = new TimerCallback(DrawScale); m_fpState = fpState.NONE; t_DrawFloorDelegate = new DDrawFloor(DrawFloor); }
public Host() { host = new CRobotHost(this); }