コード例 #1
0
        private void buttonPreviousStep_Click(object sender, EventArgs e)
        {
            countryHistory.ChildNodes[1].RemoveChild(countryHistory.ChildNodes[1].SelectSingleNode("upper_house"));
            countryHistory.Save(".\\xml\\history\\countries\\" + countryTagName + " - " + countryName + ".txt.xml");
            NewCountryTechnology nct = new NewCountryTechnology(countryTagName, countryName, mf);

            nct.Show();
            this.Close();
        }
コード例 #2
0
        private void buttonNextStep_Click(object sender, EventArgs e)
        {
            foreach (XmlNode node in issues.ChildNodes[1].SelectSingleNode("social_reforms"))
            {
                if (string.IsNullOrEmpty(countryHistory.ChildNodes[1].SelectSingleNode(node.Name).InnerText))
                {
                    MessageBox.Show("社会改革不能为空!");
                    return;
                }
            }
            countryHistory.Save(".\\xml\\history\\countries\\" + countryTagName + " - " + countryName + ".txt.xml");
            NewCountryTechnology nct = new NewCountryTechnology(countryTagName, countryName, mf);

            nct.Show();
            //nct.MdiParent = this.MdiParent;
            this.Close();
        }