コード例 #1
0
ファイル: CStation_HA.cs プロジェクト: damaro05/JenkingsTest
 public static bool CheckIsModelType(string sModelStation)
 {
     try
     {
         CStationsConfiguration stationConfig = new CStationsConfiguration(sModelStation);
         return(stationConfig.StationType == eStationType.HA);
     }
     catch (Exception)
     {
         return(false);
     }
 }
コード例 #2
0
        /// <summary>
        /// Devuelve en 3 variables de la clase la siguiente información:
        /// TypeStation --> el tipo de estación
        /// NumPort --> número de puertos
        /// ToolSoportadas() --> herramientas soportadas
        /// </summary>
        /// <remarks></remarks>
        internal void InitializeStationPortsToolsType(string model)
        {
            CStationsConfiguration confStation = new CStationsConfiguration(model);
            int          iPorts      = confStation.Ports;
            eStationType stationType = confStation.StationType;

            m_StationData.Info.StationType = stationType;
            m_PortData = new CPortData_SF[iPorts - 1 + 1];

            //Recorremos todos los puertos de la estación
            for (int idxPort = 0; idxPort <= m_PortData.Length - 1; idxPort++)
            {
                m_PortData[idxPort] = new CPortData_SF();
            }
        }