Exemple #1
0
        public bool FindUIConfigItem(string fullID, out XmlElement node, out IBxUIConfigFile file)
        {
            string itemID, fileID;

            BxUIConfigID.Split(fullID, out fileID, out itemID);
            return(FindUIConfigItem(itemID, fileID, out node, out file));
        }
Exemple #2
0
        public bool FindUIConfigItem(string fullID, out XmlElement node, out IBxUIConfigFile file)
        {
            string itemID, fileID;
            int    index = string.IsNullOrEmpty(fullID) ? -1 : fullID.IndexOf(',');

            if (index < 0)
            {
                fileID = null;
                itemID = null;
            }
            else
            {
                fileID = fullID.Substring(0, index);
                itemID = fullID.Substring(index + 1, fullID.Length - index - 1);
            }

            return(FindUIConfigItem(itemID, fileID, out node, out file));
        }
Exemple #3
0
        public bool FindUIConfigItem(string itemID, string fileID, out XmlElement node, out IBxUIConfigFile file)
        {
            if ((fileID != _priorityModule) || (_buffer.Buffer == null))
            {
                return(_baseProvider.FindUIConfigItem(itemID, fileID, out node, out file));
            }

            XmlElement temp = _buffer.Buffer.GetUIItem(itemID);

            if (temp != null)
            {
                node = temp;
                file = _buffer;
                return(true);
            }
            return(_baseProvider.FindUIConfigItem(itemID, fileID, out node, out file));
        }
Exemple #4
0
        public bool FindUIConfigItem(string itemID, string uiConfigID, out XmlElement node, out IBxUIConfigFile file)
        {
            FileInfo info = GetXmlFile(uiConfigID);

            if (info != null)
            {
                file = info.File;
                if (file != null)
                {
                    node = file.GetUIItem(itemID);
                    return(true);
                }
            }
            file = null;
            node = null;
            return(false);
        }