Beispiel #1
0
        private void 更改Answertxt生成路径ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string       Anspath = "";
            DialogResult result  = GradeFolderDialog.ShowDialog();

            if ((result == DialogResult.OK) || (result == DialogResult.Yes))
            {
                Anspath = GradeFolderDialog.SelectedPath + "\\Answer.txt";
                ChangeXml("//Path//Exe", Anspath);
                ExeAnsTextBox.Text += "更改Answer.txt到路径" + Anspath;
                ExeAnsTextBox.Text += Environment.NewLine;
            }
        }
Beispiel #2
0
        //这个菜单栏的按钮使用时,会更改默认的.txt的生成路径
        private void 更改Gradetxt生成路径ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //加载指定的xml文件
            string       Gradepath = "Grade.txt";
            DialogResult result    = GradeFolderDialog.ShowDialog();

            if ((result == DialogResult.OK) || (result == DialogResult.Yes))
            {
                Gradepath = GradeFolderDialog.SelectedPath + "\\Grade.txt";
                ChangeXml("//Path//Grade", Gradepath);
                DisGradeBox.Text += "更改Grade.txt到路径" + Gradepath;
                DisGradeBox.Text += Environment.NewLine;
            }
        }