private void BtnAddPet_Click(object sender, EventArgs e) { AddPet AP = new AddPet(userId); AP.ShowDialog(); ShowPets(); }
private void BtnAddPet_Click(object sender, EventArgs e) { int userId = (Int32)((DGWAdmData.SelectedRows[0].Cells[0]).Value); AddPet ap = new AddPet(userId); ap.ShowDialog(); ShowPets(); }