Beispiel #1
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            _session = (Session) e.Parameter;

            if (_session != null) _session.EndSession += GoToResultPage;
        }
Beispiel #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            _session = (Session) e.Parameter;

            if (_session != null)
                textBoxResult.Text = string.Format("Осталось {0} помидорок из {1}", _session.CurrentPomodoro,
                    _session.MaxPomadoro);
        }