示例#1
0
 //constructors
 public NoUIOption(NoUIContainer Parent, XElement InputXml) : base(Parent)
 {
     this._querylist = new QueryPriorityList(this);
     this.LoadXml(InputXml);
     this.RefreshValue();
     this.NotifyUpdate();
 }
示例#2
0
        public void LoadXml(XElement inputxml)
        {
            foreach (XElement x in inputxml.Elements())
            {
                //read in an option and add to a dictionary for later use
                if (x.Name == "Option")
                {
                    ListItem newoption = new ListItem(x, this._parent.ControlFormatting, this._parent);
                    this.Add(newoption);
                }

                else if (x.Name == "Query")
                {
                    XElement wrapx = new XElement("wrapx");
                    wrapx.Add(x);
                    QueryPriorityList newlist = new QueryPriorityList(this._parent);
                    newlist.LoadXml(wrapx);

                    this.Add(newlist);
                }
            }
        }
示例#3
0
 public BaseMatchingRule(XElement inputxml, ILinkTarget linktarget)
 {
     this._querylist = new QueryPriorityList(linktarget);
     this.LoadXml(inputxml);
 }
示例#4
0
 public BaseMatchingRule(ILinkTarget linktarget)
 {
     this._querylist = new QueryPriorityList(linktarget);
 }
示例#5
0
 public NoUIOption() : base()
 {
     this._querylist = new QueryPriorityList(this);
 }
示例#6
0
 public void Add(QueryPriorityList list)
 {
     this._lastindex++;
     this._querylists.Add(this._lastindex, list);
 }