Esempio n. 1
0
        public static bool WriteValue(string SectionName, string KeyName, bool Value)
        {
            if (Others.IsWritable())
            {
                bool Return;
                Return = Imports.WritePrivateProfileString(SectionName, KeyName, Value.ToString(), ConfigPath);
                return(Return);
            }
            else
            {
                return(false);

                throw new Exception("The requested file does not exist in the specified location.");
            }
        }