コード例 #1
0
ファイル: INIOperator.cs プロジェクト: hezhangxi/rms
        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);
        }
コード例 #2
0
ファイル: INIOperator.cs プロジェクト: hezhangxi/rms
        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);
        }