Exemple #1
0
 public bool SetName(string sSection)
 {
     sSection = sSection.Trim();
     if (sSection.Length != 0)
     {
         IniFile.IniSection section = this.m_pIniFile.GetSection(sSection);
         if ((section != this) && (section != null))
         {
             return(false);
         }
         try
         {
             this.m_pIniFile.m_sections.Remove(this.m_sSection);
             this.m_pIniFile.m_sections[sSection] = this;
             this.m_sSection = sSection;
             return(true);
         }
         catch (Exception exception1)
         {
             ProjectData.SetProjectError(exception1);
             Exception exception = exception1;
             Trace.WriteLine(exception.Message);
             ProjectData.ClearProjectError();
         }
     }
     return(false);
 }
Exemple #2
0
 protected internal IniKey(IniFile.IniSection parent, string sKey)
 {
     this.m_section = parent;
     this.m_sKey    = sKey;
 }