예제 #1
0
        /// <summary>To allocate and fill inner objects of the class</summary>
        /// <param name = "foundTagName">name of tag, of object, which need be allocated</param>
        /// <returns> boolean if inner tags finished</returns>
        private bool initInnerObjects(String foundTagName)
        {
            if (foundTagName == null)
            {
                return(false);
            }

            XmlParser parser = Manager.GetCurrentRuntimeContext().Parser;

            if (foundTagName.Equals(XMLConstants.MG_TAG_CONTROL))
            {
                MgControlBase control = _mgForm.ConstructMgControl();
                control.fillData(_mgForm, _controls.Count);
                _controls.Add(control);
            }
            else if (foundTagName.Equals('/' + XMLConstants.MG_TAG_CONTROL))
            {
                parser.setCurrIndex2EndOfTag();
                return(false);
            }
            else
            {
                return(false);
            }

            return(true);
        }