示例#1
0
            /// <summary>
            /// Inserts Advanced reminder properties 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 InsertAVRProperties(AdvancedReminderProperties avr)
            {
                //First check if the reminder exists
                if (DLReminders.GetReminderById(avr.Remid) == null)
                {
                    return(-1);
                }

                return(DLLocalDatabase.AVRProperty.InsertAVRProperties(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(DLLocalDatabase.AVRProperty.GetAVRFilesFolders(remId));
            }
示例#3
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));
        }
示例#4
0
        /// <summary>
        /// Get the advanced Reminder properties for a reminder
        /// </summary>
        /// <param name="remId">The id of the reminder</param>
        /// <returns></returns>
        public static AdvancedReminderProperties GetAVRProperties(long remId)
        {
            //First check if the reminder exists
            if (DLReminders.GetReminderById(remId) == null)
            {
                return(null);
            }

            return(DLAVRProperties.GetAVRProperties(remId));
        }
示例#5
0
 /// <summary>
 /// Gets an reminder with the matching unique id.
 /// </summary>
 /// <param name="id">The unique id</param>
 /// <returns>Reminder that matches the given id. null if no reminder was found</returns>
 public static Reminder GetReminderById(long id)
 {
     if (id != -1)
     {
         return(DLReminders.GetReminderById(id));
     }
     else
     {
         return(null);
     }
 }
示例#6
0
 /// <summary>
 /// Gets an reminder with the matching unique id.
 /// </summary>
 /// <param name="id">The unique id</param>
 /// <returns>Reminder that matches the given id. null if no reminder was found</returns>
 public static Reminder GetReminderById(long id)
 {
     BLIO.Log("BLReminder.GetReminderById(" + id + ")");
     if (id != -1)
     {
         return(DLReminders.GetReminderById(id));
     }
     else
     {
         return(null);
     }
 }
示例#7
0
 /// <summary>
 /// Gets an reminder with the matching unique id.
 /// </summary>
 /// <param name="id">The unique id</param>
 /// <returns>Reminder that matches the given id. null if no reminder was found</returns>
 public static Reminder GetReminderById(long id)
 {
     BLIO.Log("BLReminder.GetReminderById(" + id + ")");
     if (id != -1)
     {
         Reminder reminder = DLReminders.GetReminderById(id);
         GC.Collect();
         return(reminder);
     }
     else
     {
         return(null);
     }
 }