Exemplo n.º 1
0
 public void Load()
 {
     XDoc             = XDocument.Load(ProfileCache.Fetch("SystemProfileXml"));
     XmlProfileHelper = new XmlProfileHelper(ProfileCache, XDoc.Root);
     XmlProfileHelper.FetchAll("Parameters");
     XmlProfileHelper.FetchAll("Directories");
     XmlProfileHelper.FetchAll("Files");
     XmlProfileHelper.FetchAll("Includes");
     XmlProfileHelper.FetchAll("Programs");
 }
Exemplo n.º 2
0
 public UserSetting(object parent, XElement userSetting)
     : base(parent, userSetting)
 {
     _shrink = new ShrinkDir();
     _shrink.MaxDisplayLength = 49;
     _xmlProfileHelper        = new XmlProfileHelper(ProfileCache, userSetting);
     NewBaseDir        = _xmlProfileHelper.Fetch("Directories", "NewBaseDir");
     OldBaseDir        = _xmlProfileHelper.Fetch("Directories", "OldBaseDir");
     NewFile           = _xmlProfileHelper.Fetch("Files", "NewFile");
     OldFile           = _xmlProfileHelper.Fetch("Files", "OldFile");
     KeyShrunk         = "[" + _shrink.ShrinkDirectory(NewFile) + "]-[" + _shrink.ShrinkDirectory(OldFile) + "]";
     MinChars          = _xmlProfileHelper.FetchInt("Options", "MinChars");
     MinLines          = _xmlProfileHelper.FetchInt("Options", "MinLines");
     LimitCharacters   = _xmlProfileHelper.FetchInt("Options", "LimitCharacters");
     LimitLines        = _xmlProfileHelper.FetchInt("Options", "LimitLines");
     SubLineMatchLimit = _xmlProfileHelper.FetchInt("Options", "SubLineMatchLimit");
     CompleteLines     = _xmlProfileHelper.FetchBool("Options", "CompleteLines");
 }