Example #1
0
        /// <summary>
        /// Load in the player preferences.
        /// </summary>
        private void SettingsDialog_Load(object sender, EventArgs e)
        {
            PlayerSettings.LoadPlayerSettings();

            textboxPlayerName.Text     = PlayerSettings.Settings.PlayerName;
            textBoxServerName.Text     = PlayerSettings.Settings.Host_ServerName;
            textBoxServerPassword.Text = PlayerSettings.Settings.Host_ServerPassword;
        }
Example #2
0
 /// <summary>
 /// Refresh the player settings and close.
 /// </summary>
 private void buttonCancel_Click(object sender, EventArgs e)
 {
     PlayerSettings.LoadPlayerSettings();
     Close();
 }
Example #3
0
 private void MainMenu_Load(object sender, EventArgs e)
 {
     PlayerSettings.LoadPlayerSettings();
 }