Beispiel #1
0
        private bool SetContinueButtonText()
        {
            string data;

            var adcv = ApplicationData.Current.LocalSettings.Values["AppData"] as ApplicationDataCompositeValue;

            if (adcv == null)
            {
                return(false);
            }
            Int32      seconds = (int)(float)adcv["SecondsTicking"];
            Difficulty diff    = (Difficulty)adcv["Difficulty"];

            data = diff.ToString() + ": " + seconds.FromSecondsToTimeFormat();

            string newData = "Continue: " + data;

            ContinueButton.Content = newData;

            return(true);
        }