Exemplo n.º 1
0
        public Filter[] GetFilters()
        {
            Utils.Log.Debug("Querying filters");
            string res = fbCommand("listFilters", null);

                XmlNodeList filters = xmlDoc(res).SelectNodes("//filter");

            ArrayList ret = new ArrayList();
            foreach (XmlNode node in filters)
            {
                Filter f = new Filter();
                f.Name = node.InnerText;
                f.ID = node.SelectSingleNode("@sFilter").Value;
                f.FilterType = node.SelectSingleNode("@type").Value;
                ret.Add(f);
            }
            return (Filter[])ret.ToArray(typeof(Filter));
        }
Exemplo n.º 2
0
 public void SetFilter(Filter f)
 {
     fbCommand("saveFilter", "sFilter=" + f.ID.ToString());
 }
Exemplo n.º 3
0
 public void SetFilter(Filter f)
 {
     fbCommand("saveFilter", "sFilter=" + f.ID);
 }