예제 #1
0
        private void buttonSubmitScores_Click(object sender, EventArgs e)
        {
            XmlDocument config = new XmlDocument();
            config.Load("config.xml");
            XmlNode app = config.SelectSingleNode("//app");
            if (app.Attributes["sm5dir"].Value == "" || app.Attributes["datadir"].Value == "")
            {
                FormSettings formSettings = new FormSettings();
                formSettings.Show();
            }

            else // 
            {
                panelSubmitScores.Visible = true;
                panel_MainMenu.Visible = false;
                bW_SubmitScores.RunWorkerAsync();
            }
        }
예제 #2
0
 private void settingsToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     FormSettings formSettings = new FormSettings();
     formSettings.Show();
 }