Ejemplo n.º 1
0
        /// <summary>
        ///   Fill inner elements of the class from tokensVector
        /// </summary>
        /// <param name = "tokensVector">attribute/value/...attribute/value/ vector</param>
        private void initElements(List <String> tokensVector)
        {
            for (int j = 0; j < tokensVector.Count; j += 2)
            {
                string attribute = (tokensVector[j]);
                string valueStr  = (tokensVector[j + 1]);

                if (attribute.Equals(XMLConstants.MG_ATTR_VALUE))
                {
                    valueStr = StrUtil.DeleteStringsFromEnds(valueStr, "\"");
                    initCtlIdxTab(valueStr);
                }
                else
                {
                    Logger.Instance.WriteExceptionToLog(
                        string.Format("There is no such index in CompMainPrg. Add case to CompMainPrg.initElements for {0}",
                                      attribute));
                }
            }
            Logger.Instance.WriteDevToLog("End CompMainPrg ");
        }