示例#1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmAlta alta = new frmAlta();

            alta.ShowDialog();
            cargar();
        }
示例#2
0
        private void btnModificar_Click(object sender, EventArgs e)
        {
            Pokemon poke;

            poke = (Pokemon)dgvLista.CurrentRow.DataBoundItem;

            frmAlta modificar = new frmAlta(poke);

            modificar.ShowDialog();
            cargar();
        }