Ejemplo n.º 1
0
 /// <summary>
 /// Checks if the defualt config file exists;
 /// </summary>
 /// <returns></returns>
 public static bool ConfigExists()
 {
     return(FileManager.Exists(DIARY_CONFIG_FILE));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Writes a reminder config to the default config file.
        /// </summary>
        public static void WriteConfig(DiaryConfig config)
        {
            String s = String.Format("{0}\n{1}\n{2}\n{3}\n{4}\n{5}\n{6}", config.StartDate.ToString(), config.Weeks, config.Name, config.MorningTime, config.AfternoonTime, config.EveningTime, config.SpecialTime);

            FileManager.Write(DIARY_CONFIG_FILE, s);
        }