protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("---OnNavigatedTo---");
            try
            {
                if (service.State.ContainsKey(School.KEY))
                {
                    School s = DataContractSerializerHelper.Deserialize <School>(service.State[School.KEY] as string);
                    System.Diagnostics.Debug.WriteLine(s.ToString());
                }
            }
            catch (System.ArgumentNullException)
            {
                System.Diagnostics.Debug.WriteLine("No such key.");
            }

            if (NavigationContext.QueryString.ContainsKey("pinned"))
            {
                System.Diagnostics.Debug.WriteLine("Launching from a tile.");
            }

            LoadFromLocalStorage();

            base.OnNavigatedTo(e);
        }
Example #2
0
 private PomodoroInventory DeserializeDataFromXmlString(string xmlString)
 {
     return(DataContractSerializerHelper.Deserialize <PomodoroInventory>(xmlString));
 }