private void btnUpdate_Click(object sender, EventArgs e) { _dto.DriverLicenceType = (DriverLicenceTypeEnum)cmbLicenceType.SelectedItem; _dto.FuelType = (FuelTypeEnum)cmbFuelType.SelectedItem; _dto.EngineCapacity = txtEngineCapa.Text; _dto.DailyPrice = txtDailyPrice.Text; _dto.CarClassEnum = (CarClassEnum)cmbCarClass.SelectedItem; _dto.CarColorEnum = (CarColorEnum)cmbColor.SelectedItem; _dto.CylindeerVolume = txtCylindeerVolume.Text; _dto.InspectionExpiryDate = dtpKaskoTarihi.Value; _dto.InsuranceExpiryDate = dtpSigortaTarih.Value; _dto.Plate = txtPlate.Text; _dto.DateOfPurchase = dtpDateOfPurchase.Value; _dto.IsActive = chkActive.Checked; var result = _cc.CarUpdate(_dto); result.NotificationShow(); if (result.State == ResultState.Success) { this.Close(); } }