private void btnAgregar_Click(object sender, EventArgs e)
 {
     using (FormVehiculoCombustibleAddEdit form = new FormVehiculoCombustibleAddEdit(null))
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             tipoCombustibleVehiculoBindingSource.DataSource = db.Tipo_Combustible_Vehiculo.ToList();
         }
     }
 }
        private void btnEditar_Click(object sender, EventArgs e)
        {
            var obj = tipoCombustibleVehiculoBindingSource.Current;

            if (obj == null)
            {
                return;
            }

            using (FormVehiculoCombustibleAddEdit form = new FormVehiculoCombustibleAddEdit(obj as Tipo_Combustible_Vehiculo))
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    tipoCombustibleVehiculoBindingSource.DataSource = db.Tipo_Combustible_Vehiculo.ToList();
                }
            }
        }