コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int total_questions = Convert.ToInt16(this.txt_total_questions.Text);
            Worker.set_answer_key = new char[total_questions];
            Get_Answer[] get_answer = new Get_Answer[total_questions];
            for (int i = 0; i < total_questions; ++i)
            {
                get_answer[i] = new Get_Answer(ref i);
                
                get_answer[i].ShowDialog();

                this.listview_anskey.Items.Add((i+1).ToString() + "     " + Worker.set_answer_key[i].ToString());
            }
        }
コード例 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int total_questions = Convert.ToInt16(this.txt_total_questions.Text);

            Worker.set_answer_key = new char[total_questions];
            Get_Answer[] get_answer = new Get_Answer[total_questions];
            for (int i = 0; i < total_questions; ++i)
            {
                get_answer[i] = new Get_Answer(ref i);

                get_answer[i].ShowDialog();

                this.listview_anskey.Items.Add((i + 1).ToString() + "     " + Worker.set_answer_key[i].ToString());
            }
        }