예제 #1
0
        /// <summary>
        /// Inserts file/folder actions into the database, with a link to the reminder by it's ID
        /// </summary>
        /// <param name="avr"></param>
        /// <returns>The id of the newly inserted row. -1 if something went wrong</returns>
        public static long InsertAVRFilesFolders(AdvancedReminderFilesFolders avr)
        {
            //First check if the reminder exists
            if (DLReminders.GetReminderById(avr.Remid) == null)
            {
                return(-1);
            }

            return(DLAVRProperties.InsertAVRFilesFolders(avr));
        }
예제 #2
0
        /// <summary>
        /// Get the advanced Reminder files/folders
        /// </summary>
        /// <param name="remId">The id of the reminder</param>
        /// <returns></returns>
        public static List <AdvancedReminderFilesFolders> GetAVRFilesFolders(long remId)
        {
            //First check if the reminder exists
            if (DLReminders.GetReminderById(remId) == null)
            {
                return(null);
            }

            return(DLAVRProperties.GetAVRFilesFolders(remId));
        }
예제 #3
0
 public static void DeleteAvrFilesFoldersById(long id)
 {
     DLAVRProperties.DeleteAvrFilesFoldersById(id);
 }