示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            FormMain.CommitChangesToDisk();
            FormMain.PullRecordFormDisk(FormMain.todayWordsDict);
            FormExam quiz = new FormExam(this);//memory

            this.Hide();
            quiz.Show();
        }
示例#2
0
        private void button3_Click(object sender, EventArgs e)     //复习所有单词
        {
            allWordsDict.Load($@"{config.root_dir}/Dict.xml");
            allWordsDict.Save($@"{config.root_dir}\Dict.xml");
            PullRecordFormDisk(allWordsDict);
            FormExam newform = new FormExam(this);

            this.Hide();
            newform.Show();
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            //Form1.allWordsStream.Close();
            //string address = config.root_dir + comboBox3.SelectedItem + ".txt";
            //StreamReader sr = new StreamReader(address, Encoding.GetEncoding("GB2312"));
            //Form2.readtext(sr);
            XmlDocument thatDay = new XmlDocument();

            thatDay.Load($@"{config.root_dir}\{comboBox3.SelectedItem}.xml");
            FormMain.PullRecordFormDisk(thatDay);
            FormExam newform = new FormExam(formtemp);

            this.Close();
            newform.Show();
        }