private void button2_Click(object sender, EventArgs e) { var dog = new DogForm(new Dog { DateOfBirth = DateTime.Now }); if (dog.ShowDialog(this) == DialogResult.OK) { listBox1.Items.Add(dog.Dog); } }