Example #1
0
        private void buttonLoadDefault_Click(object sender, EventArgs e)
        {
            string  gname = "Giratina (Altered)";
            DGVItem tinaA = new DGVItem
            {
                name   = gname,
                iv_atk = 14,
                iv_def = 7,
                iv_hp  = 11,
                level  = 26.5f,
                fast   = "Dragon Breath",
                first  = "Dragon Claw",
                second = "Shadow Sneak",
            };

            tinaA.cp = _jhl.getCP(tinaA.name, tinaA.iv_atk, tinaA.iv_def, tinaA.iv_hp, tinaA.level);
            _team.Add(tinaA);


            DGVItem esc = new DGVItem
            {
                name   = "Escavalier",
                iv_atk = 10,
                iv_def = 15,
                iv_hp  = 15,
                level  = 31.5f,
                fast   = "Count",
                first  = "Drill Run",
                second = "Megahorn",
            };

            esc.cp = _jhl.getCP(esc.name, esc.iv_atk, esc.iv_def, esc.iv_hp, esc.level);

            _team.Add(esc);


            DGVItem regi = new DGVItem
            {
                name   = "Registeel",
                iv_atk = 15,
                iv_def = 13,
                iv_hp  = 15,
                level  = 41f,
                fast   = "Lock On",
                first  = "Flash Cannon",
                second = "Focus Blast",
            };

            regi.cp = _jhl.getCP(regi.name, regi.iv_atk, regi.iv_def, regi.iv_hp, regi.level);

            _team.Add(regi);


            dataGridView1.DataSource = _team;
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string  gname = "Giratina (Altered)";
            DGVItem tinaA = new DGVItem
            {
                name   = gname,
                iv_atk = 14,
                iv_def = 7,
                iv_hp  = 11,
                level  = 26.5f,
                fast   = "Shadow Claw",
                first  = "Dragon Claw",
                second = "Shadow Sneak",
            };

            tinaA.cp = _jhl.getCP(tinaA.name, tinaA.iv_atk, tinaA.iv_def, tinaA.iv_hp, tinaA.level);
            _opponent.Add(tinaA);
            dataGridView2.DataSource = _opponent;
        }