コード例 #1
0
 /// <summary>
 /// Set to default settings
 /// </summary>
 private void MetroButtonSetDefault_Click(object sender, EventArgs e)
 {
     // Set the default settings
     metroTextBoxCutOffScore.Text         = 50.ToString();
     metroToggleInclCutoff.Checked        = false;
     metroTextBoxAscore.Text              = 5.ToString();
     metroTextBoxBscore.Text              = 10.ToString();
     metroTextBoxYscore.Text              = 10.ToString();
     metroTextBoxScoreDividerLoss.Text    = 2.ToString();
     metroTextBoxAIsoScore.Text           = 5.ToString();
     metroTextBoxBIsoScore.Text           = 10.ToString();
     metroTextBoxYIsoScore.Text           = 10.ToString();
     metroTextBoxLossDividerIsoScore.Text = 2.ToString();
     // Save the settings
     ScoreSettings.Save();
 }
コード例 #2
0
 /// <summary>
 /// Save the settings.
 /// </summary>
 private void MetroButtonSave_Click(object sender, EventArgs e)
 {
     ScoreSettings.Save();
 }