Exemplo n.º 1
0
        /// <summary>
        ///   To allocate and fill inner objects of the class
        /// </summary>
        /// <param name = "foundTagName">  name of inner tag </param>
        private bool initInnerObjects(String foundTagName)
        {
            if (foundTagName == null)
            {
                return(false);
            }
            if (foundTagName.Equals(ConstInterface.MG_TAG_COMMAND))
            {
                IClientTargetedCommand cmd = new XMLBasedCommandBuilder().fillData() as IClientTargetedCommand;

                if (cmd.WillReplaceWindow)
                {
                    cmd.Execute(null);
                }
                // Expression needed for CMD_TYPE_RESULT only
                else
                {
                    _cmds.Add(cmd);
                }
            }
            else
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        /// <summary>
        ///   Start task,parsing
        /// </summary>
        private bool initInnerObjects(String foundTagName, MGData mgdata, OpeningTaskDetails openingTaskDetails)
        {
            if (foundTagName == null)
            {
                return(false);
            }

            if (foundTagName.Equals(XMLConstants.MG_TAG_TASK))
            {
                var task = new Task();
                ClientManager.Instance.TasksNotStartedCount++;
                _tasks.Add(task);
                task.fillData(mgdata, openingTaskDetails);
            }
            else
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 4
0
 /// <summary> push the current parsing information into the history stack</summary>
 public void push()
 {
     _history.Add(_currIndex);
     _history.Add(_xmLdata);
 }
Exemplo n.º 5
0
 public void Add(ObjectReferenceBase objRef)
 {
     _refs.Add(objRef);
 }