protected override void OnSleep() { SavedRandomDataParameters_JSON.WriteRandomDataParametersToFile(); }
private void InitPropertyDictionary() { var mainDisplayInfo = DeviceDisplay.MainDisplayInfo; Properties[Convert.ToString(ObjectsInPropertyDictionary.MainMenuViewModel)] = new MainMenuViewModel(true); Properties[Convert.ToString(ObjectsInPropertyDictionary.ScreenWidth)] = mainDisplayInfo.Width; Properties[Convert.ToString(ObjectsInPropertyDictionary.ScreenHeight)] = mainDisplayInfo.Height; Properties[Convert.ToString(ObjectsInPropertyDictionary.RandomDataParameters)] = SavedRandomDataParameters_JSON.GetSavedData(); Properties[Convert.ToString(ObjectsInPropertyDictionary.RandomDataStats)] = new List <RandomDataStats>(); }