Пример #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);

			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, "");
		}
Пример #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);

            sTemplate = DbUtil.Content(sgf.layout, "");
            sGutter = DbUtil.Content(sgf.gutter, "");
        }