Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SelectBreedForm SBF = new SelectBreedForm(Convert.ToInt32(animal_comboBox.SelectedValue), user, false, false, true);

            SBF.Owner = this;
            SBF.ShowDialog();
        }
Example #2
0
        private void selectBreed_button_Click(object sender, EventArgs e)
        {
            SelectBreedForm SBF = new SelectBreedForm(Convert.ToInt32(comboBox1.SelectedValue), user, true, false, false);

            SBF.Owner = this;
            SBF.ShowDialog();
            breed_textBox.Text = pet.Breed;
        }