public bool AddRobot(string name, string portname) { if (portname.Contains("COM")) { try { _robot = new SerialComm(portname, 0); } catch (Exception) { return(false); } return(true); } else if (portname == "SIM") { _robot = new DummyComm(); return(true); } return(false); }
public RobotCellLayer() { _robot = null; }