Exemplo n.º 1
0
        public static FilterPropsKernel FromList(List <string> slist)
        {
            if (slist.Count < 4)
            {
                return(null);
            }
            FilterPropsKernel fk = new FilterPropsKernel(slist[0], slist[1], slist[2], slist[3]);

            slist.RemoveRange(0, 4);
            return(fk);
        }
Exemplo n.º 2
0
        void LoadFavorites(RegistryKey rk) //rk must be open
        {
            string[] ss = (string[])rk.GetValue("favorites");
            if (ss == null)
            {
                return;
            }
            List <string>     slist = new List <string>(ss);
            FilterPropsKernel fk    = FilterPropsKernel.FromList(slist);

            while (fk != null)
            {
                favlist.Add(fk);
                AddToFavorites(fk.MkFilterProps());
                fk = FilterPropsKernel.FromList(slist);
            }
        }