Exemple #1
0
 private void btAllLdToZero_Click(object sender, EventArgs e)
 {
     if (Utils.ShowTextInput("Dom Level", out string nr, "", "0") && int.TryParse(nr, out int lv))
     {
         for (int s = 0; s < 8; s++)
         {
             statControls[s].levelDom = lv;
         }
     }
 }
Exemple #2
0
 private void allWildLvlToToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Utils.ShowTextInput("Wild Level", out string nr, "", "0") && int.TryParse(nr, out int lv))
     {
         for (int s = 0; s < 8; s++)
         {
             statControls[s].levelWild = lv;
         }
     }
 }
 private void saveAsPresetToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Utils.ShowTextInput("Preset-Name", out string s, "New Preset") && s.Length > 0)
     {
         if (customWeightings.ContainsKey(s))
         {
             if (MessageBox.Show("Preset-Name exists already, overwrite?", "Overwrite Preset?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
             {
                 customWeightings[s] = Values;
             }
             else
             {
                 return;
             }
         }
         else
         {
             customWeightings.Add(s, Values);
         }
         CustomWeightings = customWeightings;
     }
 }