Пример #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            object[] data = (object[])e.Parameter;


            tomato = (Tomato)data[0];
            string[] tasks = (string[])data[1];

            foreach (string task in tasks)
            {
                ListTask.Items.Add(new CustomItemList(task));
            }

            tomato.TimerCompleteEvent += Tomato_TimerCompleteEvent;
            tomato.TimerTickEvent     += Tomato_TimerTickEvent;
            tomato.TimerStopEvent     += Tomato_TimerStopEvent;
            LoadList();

            TxtTime.Text = "";
            BeginExecutedExtension();

            if (!tomato.AbleInternet)
            {
                netConnection = new InternetConnection(InternetAbled);
                netConnection.StartVerification();
            }
        }