Esempio n. 1
0
/*-----------------------------------------------------*/

        public void Add_NavElement(cNavElement aNavElement)
        {
            if (mElements == null)
            {
                Build_Elements();
            }
            aNavElement.Parent = this;
            mElements.Add(aNavElement);
        }
Esempio n. 2
0
/*-----------------------------------------------------*/

        public void EnableParentsChildElements(cNavElement aNavElement)
        {
            foreach (cNavElement aChildNavElement in mElements)
            {
                if (aChildNavElement.Parent == aNavElement)
                {
                    aChildNavElement.Enabled = true;
                }
            }
            aNavElement.Enabled = true;
            if (aNavElement.Parent != null)
            {
                EnableParentsChildElements(aNavElement.Parent);
            }
        }
Esempio n. 3
0
/*-----------------------------------------------------*/

        public void NavElement_FirstLevel_ValidateForReopened(cDataObjectList aReopenSectionList)
        {
            //disable all navigation items marked as submission sections
            foreach (cNavElement aChildElement in Elements)
            {
                if (aChildElement.IsSubmissionSection == true)
                {
                    NavElement_Enable(aChildElement.Key, false, true);
                }
            }
            //enable all navigation items corresponding to the reopen section rows
            foreach (cDataObject aReopenSection in aReopenSectionList)
            {
                cNavElement aChildElement = this.Find_ChildElement(aReopenSection.GetPropertyString("SectionKey"));
                if (aChildElement != null)
                {
                    NavElement_Enable(aChildElement.Key, true, true);
                }
            }
        }