private void TimerValueRetriever()
{
var applicationData = ApplicationData.Current;
var localsettings = applicationData.LocalSettings;
if (localsettings.Values == null) return;
if (localsettings.Values.ContainsKey("TimerTime"))
{
timerValue = Convert.ToDouble(localsettings.Values["TimerTime"]);
if (timerValue > 60)
{
MinuteValue = 01;
SecondsValue = timerValue - 60;
}
else if (timerValue < 60)
{
MinuteValue = 00;
SecondsValue = timerValue;
}
else
{
SecondsValue = 00;
MinuteValue = 1;
}
}
else
{
MinuteValue = 00;
SecondsValue = 20;
localsettings.Values.Add("TimerTime",(double)20);
}
RaisePropertyChanged(()=>MinuteValue);
RaisePropertyChanged(()=>SecondsValue);
}