public static bool IsNewVersionAndStore() { var buildVersion = AppInfo.Version.Minor; var storedVersion = StoreUtil.GetInt(MINORVERSION); var isNewVersion = false; if ((storedVersion == -1) || (buildVersion != storedVersion)) { isNewVersion = true; } if (isNewVersion) { StoreUtil.SaveInt(MINORVERSION, AppInfo.Version.Minor); } return(isNewVersion); }
public static void SetAlarmTime(int hour, int minute) { StoreUtil.SaveInt(ALARMHOUR, hour); StoreUtil.SaveInt(ALARMMINUTE, minute); }