void Pn4ButtonClick(object sender, EventArgs e) { string name; AddDog addDialog = new AddDog(coat, chihu.dog_type.adult); addDialog.ShowDialog(); pn4_id = addDialog.return_id; name = addDialog.return_name; pn4NameBox.Text = name; }
void VspPuppyButtonClick(object sender, EventArgs e) { string name; AddDog addDialog = new AddDog(coat, chihu.dog_type.puppy); addDialog.ShowDialog(); vsp_id = addDialog.return_id; name = addDialog.return_name; vspPuppyBox.Text = name; }
void RopVetButtonClick(object sender, EventArgs e) { string name; AddDog addDialog = new AddDog(coat, chihu.dog_type.veteran); addDialog.ShowDialog(); rop_id = addDialog.return_id; name = addDialog.return_name; ropVetBox.Text = name; }