Example #1
0
        private void fillPage(int index)
        {
            mMainLabel.Text = mItems[index].Casual;
            for (int i = 0; i < 5; i++)
            {
                mSelections[i].SetText(mItems[index].Selections[i]);
            }

            mCountDown.Stop();

            if (!amCanvas.Children.Contains(mCountDown))
            {
                amCanvas.Children.Add(mCountDown);
                Canvas.SetTop(mCountDown, FEITStandard.PAGE_BEG_Y + 580);
                Canvas.SetLeft(mCountDown, FEITStandard.PAGE_BEG_X +
                               (FEITStandard.PAGE_WIDTH - 300) / 2);//center
            }

            mCountDown.Duration = 30;
            mCountDown.Start();
        }