Пример #1
0
        public bool DeleteKey(string Section, string Key)
        {
            bool flag1;

            try
            {
                flag1 = INIFileHelper.WritePrivateProfileString(Sections, Key, null, this.Filename) != 0;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                flag1 = false;
                ProjectData.ClearProjectError();
                return(flag1);
            }
            return(flag1);
        }
Пример #2
0
        public bool Write(string Sections, string Key, int Value)
        {
            bool flag1;

            try
            {
                flag1 = INIFileHelper.WritePrivateProfileString(Sections, Key, Value.ToString(), this.Filename) != 0;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                flag1 = false;
                ProjectData.ClearProjectError();
                return(flag1);
            }
            return(flag1);
        }