Exemple #1
0
 public static ConfigFile GetInstance(XPathNavigator xPathNavigator)
 {
     if (m_ConfigFile == null)
     {
         m_ConfigFile = new ConfigFile(xPathNavigator);
     }
     return m_ConfigFile;
 }
Exemple #2
0
 private App(string fullfilename)
 {
     XPathDocument xPathDocument = new XPathDocument(fullfilename);
     XPathNodeIterator xPathNodeIterator = xPathDocument.CreateNavigator().Select("/" + GlobalDefine.Keyword.ConfigFile.Root);
     if (xPathNodeIterator.MoveNext())
     {
         if (xPathNodeIterator.Current.LocalName.Equals(GlobalDefine.Keyword.ConfigFile.Root))
         {
             m_ConfigFile = ConfigFile.ConfigFile.GetInstance(xPathNodeIterator.Current);
         }
     }
 }