//UNITES private void pictureBox6_Click(object sender, EventArgs e) { UserLine.Hide(); UnitesLine.Show(); VentesLine.Hide(); StatLine.Hide(); DisLine.Hide(); AchatsLine.Hide(); ProduitLine.Hide(); Unites.BringToFront(); }
public void Add(Units units, int exp) { var unit = Unites.Keys.FirstOrDefault(f => f.Exp.Equals(units.Exp)); if (unit == null) { Unites.Add(units, exp); } else { Unites[unit] += exp; } }
public void Add(Units units, int exp) { var lvl = Unites.FirstOrDefault(l => l.Exp == units.Exp); if (lvl == null) { Unites.Add(units); lvlUps.Add(units, exp); Save(); } else { Unites.Add(lvl); Save(); } }