コード例 #1
0
        public bool OpenOrCreateSettingsDocument(bool isCreateIfNotExist, string settingsFileNameToUse)
        {
            m_settingsFileName = settingsFileNameToUse;

            //Create blank XML doc
            m_NotepadXDocument = new HierarchicalContentDocument(new DocumentConfiguration(null, "Categorial configuration file for product: " + Path.GetFileName(Application.ExecutablePath)));
            return(this.ReloadFromFile(isCreateIfNotExist));
        }
コード例 #2
0
 public ApplicationSettings(string settingsFileNameToUse)
 {
     m_NotepadXDocument = null;
     m_NotepadXDocument = new HierarchicalContentDocument(new DocumentConfiguration(null, "Categorial configuration file for product: " + Path.GetFileName(Application.ExecutablePath)));
     m_settingsFileName = settingsFileNameToUse;
 }