示例#1
0
        public Config.status_t storeAlarm(Alarm alarm)
        {
            // Create file handler, Logic has no storeAlarm method because it is not pertinent.
            Filehandler fileH = new Filehandler();

            Config.status_t st = ERROR_UKNOWN;

            // Call fileHandler to handle storage in files.
            try
            {
                if ((st = fileH.storeAlarm(alarm)) != OK)
                {
                    return(st);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(st);
        }
示例#2
0
        public List <Sound> getSoundList(string filepath)
        {
            Filehandler fileH = new Filehandler();

            return(fileH.getSoundList(filepath));
        }