示例#1
0
        public static bool GetIsLightTheme()
        {
            bool isLightTheme = false;

            if ((Visibility)Application.Current.Resources["PhoneLightThemeVisibility"] == Visibility.Visible)
            {
                isLightTheme = true;
            }

            return(IsolatedStorageSettingsHelper.GetValue <bool>(IsLightTheme, isLightTheme));
        }
示例#2
0
 public static void SetMinCashLimitColor(string value)
 {
     IsolatedStorageSettingsHelper.SetValue(MinCashLimitColor, value);
 }
示例#3
0
 public static string GetMinCashLimitColor()
 {
     return(IsolatedStorageSettingsHelper.GetValue <string>(MinCashLimitColor, "Orange"));
 }
示例#4
0
 public static void SetMinCashLimitValue(int?value)
 {
     IsolatedStorageSettingsHelper.SetValue(MinCashLimitValue, value);
 }
示例#5
0
        public static int?GetMinCashLimitValue()
        {
            int?value = IsolatedStorageSettingsHelper.GetValue <int?>(MinCashLimitValue, 250);

            return((value != null) ? value : DefaultMinCashLimitValue);
        }
示例#6
0
 public static void SetExportDataEmail(string value)
 {
     IsolatedStorageSettingsHelper.SetValue(ExportDataEmail, value);
 }
示例#7
0
 public static string GetExportDataEmail()
 {
     return(IsolatedStorageSettingsHelper.GetValue <string>(ExportDataEmail, string.Empty));
 }
示例#8
0
 public static void SetWithLiveTileDecimalDigits(bool value)
 {
     IsolatedStorageSettingsHelper.SetValue(WithLiveTileDecimalDigits, value);
 }
示例#9
0
 public static bool GetWithLiveTileDecimalDigits()
 {
     return(IsolatedStorageSettingsHelper.GetValue <bool>(WithLiveTileDecimalDigits, false));
 }
示例#10
0
 public static void SetIsLightTheme(bool value)
 {
     IsolatedStorageSettingsHelper.SetValue(IsLightTheme, value);
 }
示例#11
0
 public static void SetHasFeedback(bool value)
 {
     IsolatedStorageSettingsHelper.SetValue(HasFeedback, value);
 }
示例#12
0
 public static bool GetHasFeedback()
 {
     return(IsolatedStorageSettingsHelper.GetValue <bool>(HasFeedback, false));
 }
示例#13
0
 public static void SetExecutionCounter(int value)
 {
     IsolatedStorageSettingsHelper.SetValue(ExecutionCounter, value);
 }
示例#14
0
 public static int GetExecutionCounter()
 {
     return(IsolatedStorageSettingsHelper.GetValue(ExecutionCounter, 1));
 }
示例#15
0
 public static void SetNotes(string value)
 {
     IsolatedStorageSettingsHelper.SetValue(Notes, value);
 }
示例#16
0
 public static string GetNotes()
 {
     return(IsolatedStorageSettingsHelper.GetValue <string>(Notes, string.Empty));
 }