private void addRentToolStripMenuItem_Click(object sender, EventArgs e) { var rentedCar = new RentedCar(); _formRentedCar.RentedCar = rentedCar; if (_formRentedCar.ShowDialog() == DialogResult.OK) { try { _RentService.AddRentedCar(rentedCar); } catch (Exception exception) { MessageBox.Show(exception.Message); } } }