public static void UpdateSettings(Settings set) { if (set != null) { DLSettings.UpdateSettings(set); } }
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()); }
public static Settings GetSettings() { return(DLSettings.GetSettings()); }
/// <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()); }
/// <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()); }
/// <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()); }
/// <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()); }
public static void UpdateSettings(Settings set) { DLSettings.UpdateSettings(set); }