예제 #1
0
 private void buttonRestoreDefaults_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "Are you sure you wish to lose your current settings and restore defaults?",
                         "Restore Defaults", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
     {
         PropertiesManager.RestoreDefaults();
         LoadControls();
     }
 }
예제 #2
0
 private void buttonOk_Click(object sender, EventArgs e)
 {
     PropertiesManager.Properties.CompetitionControllerLoadMaximum = trackBarMaxCrittersLoadedPerDLL.Value;
     PropertiesManager.Properties.CritterControllerDLLPath         = textBoxPathToCritterControllerDLLs.Text.Trim();
     PropertiesManager.Properties.CritterControllerFilesPath       = textBoxPathToFilesCreatedByCritterControllers.Text.Trim();
     PropertiesManager.Properties.TerrainDetailFactor = trackBarTerrainDetailFactor.Value;
     Hide();
     PropertiesManager.Save();
 }