Esempio n. 1
0
        private void UseSet_FocusMode_CheckAnswer(object sender, RoutedEventArgs e) //next의 클릭 함수로 집어넣기 위해서는 인수를 2개 받는 형태여야했다.
        {
            Check check = new Check(set_name, "답안을 채점하시겠습니까?");                     //채점할 것인지 묻는다.
            bool  score = check.ShowDialog().Value;

            if (score)//채점
            {
                UseSet_FocusMode_Answer useSet_FocusMode_Answer = new UseSet_FocusMode_Answer(set_name, std_answer, usr_answer, ques_mode);
                useSet_FocusMode_Answer.ShowDialog();
            }
            else
            {
                return;
            }

            Check check2  = new Check(set_name, "이 세트를 다시 학습하시겠습니까?");
            bool  restart = check2.ShowDialog().Value;

            this.Close();
            if (restart)//다시 학습한다고 했을 때
            {
                Select_Mode select = new Select_Mode(set_name);
                select.Show();
            }
        }
Esempio n. 2
0
        private void START_Click(object sender, RoutedEventArgs e)//학습 모드
        {
            if ((present_set_num > table_count) || (present_set_num == 0) || (word_count[present_set_num - 1] == 0))
            {
                return;                                                                                                  //세트가 존재하지않거나, 세트 내에 데이터가 없을 때 학습 모드 실행을 막는다.
            }
            Select_Mode select = new Select_Mode(set_name[present_set_num - 1]);

            select.Show();
        }
Esempio n. 3
0
        private void UseSet_End()//학습은 마쳤을 때 실행되는 함수
        {
            Check check   = new Check(set_name, "이 세트를 다시 학습하시겠습니까?");
            bool  restart = check.ShowDialog().Value;

            if (restart)//다시 학습한다고 했을 때
            {
                Select_Mode select = new Select_Mode(set_name);
                select.Show();
            }
            this.Close();
        }