private void buttonAddCar_Click(object sender, EventArgs e) { Car car = new Car(0, textBoxBrand.Text, textBoxModel.Text, textBoxColor.Text, textBoxEngine.Text, textBoxChassis.Text, Double.Parse(textBoxPrice.Text)); sql.AddCar(car, equipments); sql.AddCarToStorage(car, (Storage)comboBoxStorage.SelectedItem); textBoxChassis.Text = ""; textBoxBrand.Text = ""; textBoxColor.Text = ""; textBoxModel.Text = ""; textBoxEngine.Text = ""; textBoxPrice.Text = ""; textBoxNameOfEquipment.Text = ""; richTextBoxInfoOfEquipment.Text = ""; listBoxEquipment.Items.Clear(); this.Hide(); if (EmployeeForm != null) { EmployeeForm.Show(); } }