Exemple #1
0
        public bool DeleteKey(string Section, string Key)
        {
            bool flag1;

            try
            {
                flag1 = INIOperator.WritePrivateProfileString(Sections, Key, null, this.Filename) != 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                flag1 = false;
                return(flag1);
            }
            return(flag1);
        }
Exemple #2
0
        public bool Write(string Sections, string Key, int Value)
        {
            bool flag1;

            try
            {
                flag1 = INIOperator.WritePrivateProfileString(Sections, Key, Value.ToString(), this.Filename) != 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                flag1 = false;
                return(flag1);
            }
            return(flag1);
        }