예제 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     var o = Newtonsoft.Json.JsonConvert.DeserializeObject<WeatherRecord>(e.Parameter.ToString());
     Data = o; //e.Parameter as WeatherRecord;
     if (Data == null) throw new Exception("PANIC!");
 }
예제 #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     Data = e.Parameter as WeatherRecord;
     if (Data == null)
     {
         throw new Exception("PANIC!");
     }
 }
예제 #3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            var o = Newtonsoft.Json.JsonConvert.DeserializeObject <WeatherRecord>(e.Parameter.ToString());

            Data = o; //e.Parameter as WeatherRecord;
            if (Data == null)
            {
                throw new Exception("PANIC!");
            }
        }
예제 #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     Data = e.Parameter as WeatherRecord;
     if (Data == null) throw new Exception("PANIC!");
 }