예제 #1
0
        public BabyExercise()
        {
            InitializeComponent();

            exercise = Session.CurrentExercise;
            list = exercise.getTextsAsArrayChar();
            this.BackColor = Color.Pink;
            this.Refresh();

            stats = new Stats();

            pictureBox1.Load("1.jpg");

            index = 0;
            difficultyProgressBar.Minimum = 0;
            difficultyProgressBar.Maximum = list.Count;
            isRuning = true;

            watch = new Stopwatch();
            watch.Start();
            panel1.Visible = true;
            exerciseType = 1;

            listOfBox.Add(Letter1);
            listOfBox.Add(Letter2);
            listOfBox.Add(Letter3);
            listOfBox.Add(Letter4);
            listOfBox.Add(Letter5);

            initBoxList();

        }
예제 #2
0
파일: ExerciseForm.cs 프로젝트: mcLyu/LIO
        private void clearAll()
        {
            list = exercise.getTextsAsArrayChar();

            index = 0;
            difficultyProgressBar.Minimum = 0;
            difficultyProgressBar.Maximum = list.Count;
            isRuning = true;
            listBox1.Items.Clear();
            listBox1.Refresh();
            timer1.Enabled = true;
            timer1.Start();
            watch = new Stopwatch();
            watch.Start();
            stats = new Stats();
        }
예제 #3
0
파일: ExerciseForm.cs 프로젝트: mcLyu/LIO
        public ExerciseForm()
        {
            InitializeComponent();
            exercise = Session.CurrentExercise;
            list = exercise.getTextsAsArrayChar();

            stats = new Stats();

            pictureBox1.Load("1.jpg");

            index = 0;
            difficultyProgressBar.Minimum = 0;
            difficultyProgressBar.Maximum = list.Count;
            isRuning = true;

            watch = new Stopwatch();
            watch.Start();
        }
예제 #4
0
        private void clearAll()
        {
           
            list = exercise.getTextsAsArrayChar();

            index = 0;
            currentLabel = 0;
            difficultyProgressBar.Minimum = 0;
            difficultyProgressBar.Maximum = list.Count;
            isRuning = true;
            timer2.Enabled = true;
            timer2.Start();
            watch = new Stopwatch();
            watch.Start();
            stats = new Stats();
            foreach (Label labl in listOfBox)
            {
                labl.BackColor = Color.Blue;
            }

        }
예제 #5
0
        public void initStandartMode()
        {
            exercise = Session.CurrentExercise;
            list = exercise.getTextsAsArrayChar();
            this.BackColor = Color.AliceBlue;

            this.Refresh();

            stats = new Stats();

            pictureBox1.Load("1.jpg");

            index = 0;
            difficultyProgressBar.Minimum = 0;
            difficultyProgressBar.Maximum = list.Count;
            isRuning = true;

            watch = new Stopwatch();
            watch.Start();
            listBox1.Visible = true;
            exerciseType = 0;