private void RespondToSwagGood(object o, ThingGoodEventArgs e) { if (e.IsGood) { DialogResult = e.IsGood; Close(); } else { MessageBox.Show("Please enter a valid swag Company and Thing", "Company and Thing is required", MessageBoxButton.OK, MessageBoxImage.Information); } }
private void RespondToAttendeeGood(object o, ThingGoodEventArgs e) { if (e.IsGood) { DialogResult = e.IsGood; Close(); } else { MessageBox.Show("Please enter a valid attendee Name", "Name is required", MessageBoxButton.OK, MessageBoxImage.Information); } }