Esempio n. 1
0
 internal static bool Connect(TangoConfig config)
 {
     string[] boolKeys;
     bool[]   boolValues;
     TangoDevice.CopyDictionaryToArrays <bool>(config.m_boolParams, out boolKeys, out boolValues);
     string[] intKeys;
     int[]    intValues;
     TangoDevice.CopyDictionaryToArrays <int>(config.m_intParams, out intKeys, out intValues);
     string[] longKeys;
     long[]   longValues;
     TangoDevice.CopyDictionaryToArrays <long>(config.m_longParams, out longKeys, out longValues);
     string[] doubleKeys;
     double[] doubleValues;
     TangoDevice.CopyDictionaryToArrays <double>(config.m_doubleParams, out doubleKeys, out doubleValues);
     string[] stringKeys;
     string[] stringValues;
     TangoDevice.CopyDictionaryToArrays <string>(config.m_stringParams, out stringKeys, out stringValues);
     return(TangoDevice.Connect(boolKeys, boolValues, intKeys, intValues, longKeys, longValues, doubleKeys, doubleValues, stringKeys, stringValues));
 }
Esempio n. 2
0
        static internal bool Connect(TangoConfig config)
        {
            string[] boolKeys, intKeys, longKeys, doubleKeys, stringKeys;
            bool[]   boolValues;
            int[]    intValues;
            long[]   longValues;
            double[] doubleValues;
            string[] stringValues;

            CopyDictionaryToArrays(config.m_boolParams, out boolKeys, out boolValues);
            CopyDictionaryToArrays(config.m_intParams, out intKeys, out intValues);
            CopyDictionaryToArrays(config.m_longParams, out longKeys, out longValues);
            CopyDictionaryToArrays(config.m_doubleParams, out doubleKeys, out doubleValues);
            CopyDictionaryToArrays(config.m_stringParams, out stringKeys, out stringValues);

            return(Connect(boolKeys, boolValues,
                           intKeys, intValues,
                           longKeys, longValues,
                           doubleKeys, doubleValues,
                           stringKeys, stringValues));
        }