Exemplo n.º 1
0
        public void load(string sName)
        {
            var xml = DbUtil.Content("SGF-" + sName + ".xml", "");

            var xs = new XmlSerializer(typeof(SmallGroupFinder), new XmlRootAttribute("SGF"));
            var sr = new StringReader(xml);

            sgf = (SmallGroupFinder)xs.Deserialize(sr);

            sTemplate = DbUtil.Content(sgf.layout, "");
            sGutter   = DbUtil.Content(sgf.gutter, "");
        }
Exemplo n.º 2
0
        public void load(string sName)
        {
            var xml = DbUtil.Content("SGF-" + sName + ".xml", "");

            var xs = new XmlSerializer(typeof(SmallGroupFinder), new XmlRootAttribute("SGF"));
            var sr = new StringReader(xml);

            sgf = (SmallGroupFinder)xs.Deserialize(sr);

            string[] divs = sgf.divisionid.Split(',');
            foreach (var div in divs)
            {
                divList.Add(Convert.ToInt32(div));
            }

            sShell    = DbUtil.Content(sgf.shell, "");
            sTemplate = DbUtil.Content(sgf.layout, "");
            sGutter   = DbUtil.Content(sgf.gutter, "");
        }
Exemplo n.º 3
0
        public void load(string sName)
        {
            var xml = DbUtil.Content(DbUtil.Db, "SGF-" + sName + ".xml", "");

            var xs = new XmlSerializer(typeof(SmallGroupFinder), new XmlRootAttribute("SGF"));
            var sr = new StringReader(xml);

            _sgf = (SmallGroupFinder)xs.Deserialize(sr);

            var divs = _sgf.divisionid?.Split(',') ?? new string[] { };

            foreach (var div in divs)
            {
                _divList.Add(Convert.ToInt32(div));
            }

            _shell    = DbUtil.Content(DbUtil.Db, _sgf.shell, "");
            _template = DbUtil.Content(DbUtil.Db, _sgf.layout, "");
            _gutter   = DbUtil.Content(DbUtil.Db, _sgf.gutter, "");

            UseNewUi = getSetting("UseNewUI")?.value == "true";
        }