Beispiel #1
0
 public static void UpdateSettings(Settings set)
 {
     if (set != null)
     {
         DLSettings.UpdateSettings(set);
     }
 }
Beispiel #2
0
        public override string ToVerboseString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat(" (MACPayload = AppNonce[3] | NetID[3] | DevAddr[4] | DLSettings[1] | RxDelay[1] | CFList[0 | 15])").AppendLine();
            sb.AppendFormat("    AppNonce = {0}", AppNonce.Value).AppendLine();
            sb.AppendFormat("       NetID = {0}", NetID.Value).AppendLine();
            sb.AppendFormat("     DevAddr = {0}", DevAddr.Address).AppendLine();
            sb.AppendFormat("  DLSettings = {0}", DLSettings.RawData.ToHexString()).AppendLine();
            sb.AppendFormat("     RxDelay = {0}", RxDelay.RawData.ToHexString()).AppendLine();
            sb.AppendFormat("      CFList = {0}", CFList.RawData.ToHexString()).AppendLine();
            sb.AppendLine();
            sb.Append(DLSettings.ToVerboseString());
            sb.AppendLine();
            sb.Append(RxDelay.ToVerboseString());
            if (CalculatedMIC.IsValid)
            {
                sb.AppendFormat("    Calc MIC = {0})", CalculatedMIC.RawData.ToHexString()).AppendLine();
            }

            return(sb.ToString());
        }
Beispiel #3
0
 public static Settings GetSettings()
 {
     return(DLSettings.GetSettings());
 }
Beispiel #4
0
 /// <summary>
 /// Reads the settings from the database and checks if the controls should be cleared after making a new reminder.
 /// </summary>
 /// <returns>True to use sticky form, false if not</returns>
 public static bool IsStickyForm()
 {
     return(DLSettings.IsStickyForm());
 }
Beispiel #5
0
 /// <summary>
 /// Reads the settings from the database and checks if there should be a notification 1 hour before the reminder that there is a reminder
 /// </summary>
 /// <returns>True if the notification is enabled, false if not</returns>
 public static bool IsHourBeforeNotificationEnabled()
 {
     //no business logic (yet)
     return(DLSettings.IsHourBeforeNotificationEnabled());
 }
Beispiel #6
0
 /// <summary>
 /// Reads the settings from the database and checks if reminders should be set to always on top.
 /// </summary>
 /// <returns>True if reminders are set to be always on top, false if not</returns>
 public static bool IsReminderCountPopupEnabled()
 {
     //no business logic (yet)
     return(DLSettings.IsReminderCountPopupEnabled());
 }
Beispiel #7
0
 /// <summary>
 /// Reads the settings from the database and checks if reminders should be set to always on top.
 /// </summary>
 /// <returns>True if reminders are set to be always on top, false if not</returns>
 public static bool IsAlwaysOnTop()
 {
     //no business logic (yet)
     return(DLSettings.IsAlwaysOnTop());
 }
Beispiel #8
0
 public static void UpdateSettings(Settings set)
 {
     DLSettings.UpdateSettings(set);
 }