示例#1
0
文件: Form1.cs 项目: AkMedIm/AKMED-ST
        //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();
        }
示例#2
0
        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();
            }
        }