Example #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="p"></param>
        /// <param name="name"></param>
        /// <param name="xmlNode"></param>
        /// <returns></returns>
        internal static IPicker CreatePicker(string deviceType, XmlNode xmlNode)
        {
            DataFieldPicker  r = null;

            foreach (XmlNode node in xmlNode.ChildNodes )
            {
                string name = XmlHelper.GetAttribute(xmlNode, "name", false);
                switch (node.Name)
                {
                    case DeviceDefineNodeNames.ReceivePart:
                        ReceivePart rp = CreateReceivePart(node);
                        //rps.Add(rp);
                        r = new DataFieldPicker(name, rp);
                        break;
                }
            }
            return r;
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="p"></param>
        /// <param name="name"></param>
        /// <param name="xmlNode"></param>
        /// <returns></returns>
        internal static IPicker CreatePicker(string deviceType, XmlNode xmlNode)
        {
            DataFieldPicker r = null;

            foreach (XmlNode node in xmlNode.ChildNodes)
            {
                string name = XmlHelper.GetAttribute(xmlNode, "name", false);
                switch (node.Name)
                {
                case DeviceDefineNodeNames.ReceivePart:
                    ReceivePart rp = CreateReceivePart(node);
                    //rps.Add(rp);
                    r = new DataFieldPicker(name, rp);
                    break;
                }
            }
            return(r);
        }