AD7Port CreatePort(AD7PortRequest port_request)
{
string portname;
Guid guid;
bool isSimulator = false;
port_request.GetPortName(out portname);
string password = portname.Substring(portname.IndexOf('-') + 1);
portname = portname.Remove(portname.IndexOf('-'));
if (portname.Substring(0, 6) == "Device")
guid = new Guid("{69519DBB-5329-4CCE-88A9-EC1628AD99C2}");
else
{
guid = new Guid("{25040BDD-6683-4D5C-8EFA-EB4DDF5CA08E}");
isSimulator = true;
}
return new AD7Port(this, port_request, guid, portname, password, isSimulator, m_toolsPath);
}