示例#1
0
        private void GoToSettings_Click(object sender, EventArgs e)
        {
            Settings settings = new Settings(player, robot1, robot2, robot3, level);

            if (settings.ShowDialog() == DialogResult.OK)
            {
                WriteOrReadXMLFile.ExportData(player, robot1, robot2, robot3, level);
            }
        }
示例#2
0
        private void FillTheSettingsNodes()
        {
            if (File.Exists("UserSettings.xml"))
            {
                WriteOrReadXMLFile.ImportData(player, robot1, robot2, robot3, m_Level);

                InitializeUIElements();
            }
            else
            {
                WriteOrReadXMLFile.ImportDefaultSettings(player, robot1, robot2, robot3, m_Level);

                InitializeUIElements();
            }
        }
示例#3
0
        public NavigationMenu()
        {
            InitializeComponent();

            player = new Player("", 0, 0, 0);
            robot1 = new Robot("", 1, 0, 0);
            robot2 = new Robot("", 2, 0, 0);
            robot3 = new Robot("", 3, 0, 0);
            level  = new Level();

            if (File.Exists("UserSettings.xml"))
            {
                WriteOrReadXMLFile.ImportData(player, robot1, robot2, robot3, level);
            }
            else
            {
                WriteOrReadXMLFile.ImportDefaultSettings(player, robot1, robot2, robot3, level);
            }

            ButtonTip.SetToolTip(GoToTheGame, "Játék");
            ButtonTip.SetToolTip(GoToSettings, "Beállítások");
            ButtonTip.SetToolTip(GoToRules, "Játékszabályzat");
            ButtonTip.SetToolTip(Exit, "Kilépés a Windowsba");
        }