Esempio n. 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            dynamic deserializeObject = JsonConvert.DeserializeObject(e.Parameter.ToString());
            var     data = deserializeObject.Data;

            var minutes = data.timer.Value;

            timerViewModel = new TimerViewModel(Convert.ToInt32(minutes), 0, "Timer");
            DataContext    = timerViewModel;
        }
Esempio n. 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            dynamic deserializeObject = JsonConvert.DeserializeObject(e.Parameter.ToString());
            var     data = deserializeObject.Data;

            int from = data.from;
            int to   = data.to;

            timerViewModel = new TimerViewModel(from, to, "Count");
            DataContext    = timerViewModel;
        }