Пример #1
0
        public Nivel Nivel(ProgressBar pb, int xp)
        {
            Nivel lvl = new Nivel(xp);

            pb.Minimum = lvl.Min;
            pb.Maximum = lvl.Max;
            pb.Value   = xp;
            return(lvl);
        }
Пример #2
0
        public int Nivel(int xp)
        {
            int lvl = new Nivel(xp).Level;

            return(lvl);
        }