protected void ManageTextTimer()
    {
        seconds = (int)(cd_time - act_time) + 1;
        if (seconds < prev_seconds)
        {
            prev_seconds = seconds;

            //Set time text
            timer_text.SetText(prev_seconds.ToString());
        }
    }
Esempio n. 2
0
        private void layProgressText(int index)
        {
            CompText ct = new CompText(mMainWindow, 10);

            ct.SetText("第" + (index + 1).ToString() + "题,共" + mItems.Count + "题");
            mMainWindow.amCanvas.Children.Add(ct);
            Canvas.SetTop(ct, mMainWindow.Height - 180);
            Canvas.SetLeft(ct, mMainWindow.Width / 2 - 65);
        }
Esempio n. 3
0
        private void layTextSelection(int index, int UIselected)
        {
            Dictionary <int, StSelection> selection = mItems[index].Selections;
            List <UserControl>            list      = new List <UserControl>();

            for (int i = 0; i < selection.Count; i++)
            {
                CompText ct = new CompText(mMainWindow, 10);
                ct.SetText(selection[i].Casual);
                mMainWindow.amCanvas.Children.Add(ct);
                Canvas.SetTop(ct, mVerTaken);
                Canvas.SetLeft(ct, (mMainWindow.Width - ct.Width) / 2);
                mVerTaken += CompText.HEIGHT + SEL_GAP;
                list.Add(ct);
            }


            //mMainWindow.Height = mVerTaken + CompText.HEIGHT + 100;
            mSelGrp.Set(list, UIselected);
        }