/// <summary> /// Constructor. /// </summary> /// <param name="supplier"> The port supplier for this port. </param> /// <param name="request"> The request used to create the port. </param> /// <param name="guid"> The GUID that identifies the port. </param> /// <param name="portName"> The name of the port. </param> /// <param name="password"> The password needed to have access to the port. </param> /// <param name="isSimulator"> Variable that indicates if the port is associated to the Simulator or the Device. </param> /// <param name="toolsPath"> The NDK host path. </param> public AD7Port(AD7PortSupplier supplier, AD7PortRequest request, Guid guid, string portName, string password, bool isSimulator, string toolsPath) { m_name = portName; m_request = request; m_supplier = supplier; m_guid = guid; if (m_name != "") { if (isSimulator) { m_IP = m_name.Substring(11); } else { m_IP = m_name.Substring(8); } } else { m_name = " "; m_IP = ""; } m_password = password; m_isSimulator = isSimulator; m_toolsPath = toolsPath; }
/// <summary> /// Constructor. /// </summary> /// <param name="supplier"> The port supplier for this port. </param> /// <param name="request"> The request used to create the port. </param> /// <param name="guid"> The GUID that identifies the port. </param> /// <param name="portName"> The name of the port. </param> /// <param name="password"> The password needed to have access to the port. </param> /// <param name="isSimulator"> Variable that indicates if the port is associated to the Simulator or the Device. </param> /// <param name="toolsPath"> The NDK host path. </param> public AD7Port(AD7PortSupplier supplier, AD7PortRequest request, Guid guid, string portName, string password, bool isSimulator, string toolsPath) { m_name = portName; m_request = request; m_supplier = supplier; m_guid = guid; if (isSimulator) m_IP = m_name.Substring(11); else m_IP = m_name.Substring(8); m_password = password; m_isSimulator = isSimulator; m_toolsPath = toolsPath; }