Beispiel #1
0
        /// <param name="index">
        /// </param>
        /// <returns> true if the element at the specified index is read only
        /// </returns>
        public virtual bool isIndexReadonly(FormIndex index)
        {
            if (index.BeginningOfFormIndex || index.EndOfFormIndex)
            {
                return(true);
            }

            TreeReference ref_Renamed    = form.getChildInstanceRef(index);
            bool          isAskNewRepeat = (getEvent(index) == FormEntryController.EVENT_PROMPT_NEW_REPEAT || getEvent(index) == FormEntryController.EVENT_REPEAT_JUNCTURE);

            if (isAskNewRepeat)
            {
                return(false);
            }
            else
            {
                TreeElement node = form.MainInstance.resolveReference(ref_Renamed);
                return(!node.isEnabled());
            }
        }