本文整理汇总了C#中org类的典型用法代码示例。如果您正苦于以下问题:C# org类的具体用法?C# org怎么用?C# org使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
org类属于命名空间,在下文中一共展示了org类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: frmResult
public frmResult(IITTrackCollection selectedTracks, org.lyricwiki.LyricWiki lyricsWiki, Boolean overwrite)
: this()
{
this.m_selectedTracks = selectedTracks;
this.m_lyricsWiki = lyricsWiki;
this.m_overwrite = overwrite;
}
开发者ID:JacobHeymann,项目名称:ilyrics,代码行数:7,代码来源:AutoUpdate.cs
示例2: asAttributeSet
public static global::android.util.AttributeSet asAttributeSet(org.xmlpull.v1.XmlPullParser arg0)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.util.Xml._m6.native == global::System.IntPtr.Zero)
global::android.util.Xml._m6 = @__env.GetStaticMethodIDNoThrow(global::android.util.Xml.staticClass, "asAttributeSet", "(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;");
return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::android.util.AttributeSet>(@__env.CallStaticObjectMethod(android.util.Xml.staticClass, global::android.util.Xml._m6, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as android.util.AttributeSet;
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Xml.cs
示例3: inflate
public override void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser
parser, android.util.AttributeSet attrs)
{
base.inflate(r, parser, attrs);
int type;
android.content.res.TypedArray a = r.obtainAttributes(attrs, [email protected]
styleable.ClipDrawable);
int orientation = a.getInt([email protected]_clipOrientation
, HORIZONTAL);
int g = a.getInt([email protected]_gravity, android.view.Gravity
.LEFT);
android.graphics.drawable.Drawable dr = a.getDrawable([email protected]
.ClipDrawable_drawable);
a.recycle();
int outerDepth = parser.getDepth();
while ((type = parser.next()) != org.xmlpull.v1.XmlPullParserClass.END_DOCUMENT &&
(type != org.xmlpull.v1.XmlPullParserClass.END_TAG || parser.getDepth() > outerDepth
))
{
if (type != org.xmlpull.v1.XmlPullParserClass.START_TAG)
{
continue;
}
dr = android.graphics.drawable.Drawable.createFromXmlInner(r, parser, attrs);
}
if (dr == null)
{
throw new System.ArgumentException("No drawable specified for <clip>");
}
mClipState.mDrawable = dr;
mClipState.mOrientation = orientation;
mClipState.mGravity = g;
dr.setCallback(this);
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:34,代码来源:ClipDrawable.cs
示例4: CompletarWS
public void CompletarWS(org.dyndns.cedweb.consulta.ConsultarResult lc)
{
if (lc.comprobante[0].resumen.impuestos != null)
{
impuestos = new System.Collections.Generic.List<FeaEntidades.InterFacturas.resumenImpuestos>();
foreach (org.dyndns.cedweb.consulta.ConsultarResultComprobanteResumenImpuestos imp in lc.comprobante[0].resumen.impuestos)
{
if (imp.importe_impuesto_moneda_origenSpecified)
{
imp.importe_impuesto = imp.importe_impuesto_moneda_origen;
}
FeaEntidades.InterFacturas.resumenImpuestos ri = new FeaEntidades.InterFacturas.resumenImpuestos();
ri.codigo_impuesto = imp.codigo_impuesto;
ri.codigo_jurisdiccion = imp.codigo_jurisdiccion;
ri.codigo_jurisdiccionSpecified = imp.codigo_jurisdiccionSpecified;
ri.descripcion = imp.descripcion;
ri.importe_impuesto = imp.importe_impuesto;
ri.importe_impuesto_moneda_origen = imp.importe_impuesto_moneda_origen;
ri.importe_impuesto_moneda_origenSpecified = imp.importe_impuesto_moneda_origenSpecified;
ri.jurisdiccion_municipal = imp.jurisdiccion_municipal;
ri.porcentaje_impuesto = imp.porcentaje_impuesto;
ri.porcentaje_impuestoSpecified = imp.porcentaje_impuestoSpecified;
impuestos.Add(ri);
}
if (impuestos.Count.Equals(0))
{
impuestos.Add(new FeaEntidades.InterFacturas.resumenImpuestos());
}
impuestosGridView.DataSource = impuestos;
impuestosGridView.DataBind();
ViewState["impuestos"] = impuestos;
}
}
开发者ID:pjeconde,项目名称:CedServicios,代码行数:33,代码来源:ImpuestosConsulta.ascx.cs
示例5: add
public virtual void add(org.openrdf.model.Statement s, params org.openrdf.model.Resource[] rarr)
{
IEnumerable<Uri> contexts = rarr.ToContexts(this._mapping);
Graph g = new Graph();
g.Assert(SesameConverter.FromSesame(s, this._mapping));
this.AddInternal(g, contexts);
}
开发者ID:jbunzel,项目名称:MvcRQ_git,代码行数:7,代码来源:BaseRepositoryConnection.cs
示例6: xdrEncode
/// <summary>
/// Encodes -- that is: serializes -- the result of a PMAP_DUMP operationg
/// into a XDR stream.
/// </summary>
/// <remarks>
/// Encodes -- that is: serializes -- the result of a PMAP_DUMP operationg
/// into a XDR stream.
/// </remarks>
/// <exception cref="OncRpcException">if an ONC/RPC error occurs.</exception>
/// <exception cref="System.IO.IOException">if an I/O error occurs.</exception>
/// <exception cref="org.acplt.oncrpc.OncRpcException"></exception>
public virtual void xdrEncode(org.acplt.oncrpc.XdrEncodingStream xdr)
{
if (servers == null)
{
xdr.xdrEncodeBoolean(false);
}
else
{
//
// Now encode all server ident objects into the xdr stream. Each
// object is preceeded by a boolan, which indicates to the receiver
// whether an object follows. After the last object has been
// encoded the receiver will find a boolean false in the stream.
//
int count = servers.Count;
int index = 0;
while (count > 0)
{
xdr.xdrEncodeBoolean(true);
((org.acplt.oncrpc.XdrAble)servers[index]).xdrEncode(xdr);
index++;
count--;
}
xdr.xdrEncodeBoolean(false);
}
}
开发者ID:mushuanli,项目名称:nekodrive,代码行数:37,代码来源:OncRpcDumpResult.cs
示例7: xdrDecodeCredVerf
/// <summary>
/// Decodes -- that is: deserializes -- an ONC/RPC authentication object
/// (credential & verifier) on the server side.
/// </summary>
/// <remarks>
/// Decodes -- that is: deserializes -- an ONC/RPC authentication object
/// (credential & verifier) on the server side.
/// </remarks>
/// <exception cref="org.acplt.oncrpc.OncRpcException">if an ONC/RPC error occurs.</exception>
/// <exception cref="System.IO.IOException">if an I/O error occurs.</exception>
public override sealed void xdrDecodeCredVerf(org.acplt.oncrpc.XdrDecodingStream
xdr)
{
//
// As the authentication type has already been pulled off the XDR
// stream, we only need to make sure that really no opaque data follows.
//
if (xdr.xdrDecodeInt() != 0)
{
throw (new org.acplt.oncrpc.OncRpcAuthenticationException(org.acplt.oncrpc.OncRpcAuthStatus
.ONCRPC_AUTH_BADCRED));
}
//
// We also need to decode the verifier. This must be of type
// AUTH_NONE too. For some obscure historical reasons, we have to
// deal with credentials and verifiers, although they belong together,
// according to Sun's specification.
//
if ((xdr.xdrDecodeInt() != org.acplt.oncrpc.OncRpcAuthType.ONCRPC_AUTH_NONE) || (
xdr.xdrDecodeInt() != 0))
{
throw (new org.acplt.oncrpc.OncRpcAuthenticationException(org.acplt.oncrpc.OncRpcAuthStatus
.ONCRPC_AUTH_BADVERF));
}
}
开发者ID:zjianliu,项目名称:NFSClient,代码行数:35,代码来源:OncRpcServerAuthNone.cs
示例8: SendOne
// No array gathering support so one by one
private void SendOne(org.objectfabric.Queue buffs)
{
org.objectfabric.CLRBuff buff = (org.objectfabric.CLRBuff) buffs.poll();
if (buff == null)
WriteComplete();
else
{
try
{
ArraySegment<byte> buffer = new ArraySegment<byte>(buff.array(), buff.position(), buff.limit() - buff.position());
Task task = _socket.SendAsync(buffer, WebSocketMessageType.Binary, false, CancellationToken.None);
task.ContinueWith(_ =>
{
Recycle(buff);
SendOne(buffs);
});
}
catch (Exception ex)
{
Recycle(buff);
OnError(ex);
}
}
}
开发者ID:stoneroses,项目名称:objectfabric,代码行数:27,代码来源:WebSocketConnection.cs
示例9: OncRpcServerAcceptedCallMessage
/// <summary>
/// Constructs an <code>OncRpcServerAcceptedCallMessage</code> object which
/// represents an accepted call, which was also successfully executed,
/// so the reply will contain information from the remote procedure call.
/// </summary>
/// <remarks>
/// Constructs an <code>OncRpcServerAcceptedCallMessage</code> object which
/// represents an accepted call, which was also successfully executed,
/// so the reply will contain information from the remote procedure call.
/// </remarks>
/// <param name="call">
/// The call message header, which is used to construct the
/// matching reply message header from.
/// </param>
public OncRpcServerAcceptedCallMessage(org.acplt.oncrpc.server.OncRpcServerCallMessage
call) : base(call, org.acplt.oncrpc.OncRpcReplyStatus.ONCRPC_MSG_ACCEPTED, org.acplt.oncrpc.OncRpcAcceptStatus
.ONCRPC_SUCCESS, org.acplt.oncrpc.OncRpcReplyMessage.UNUSED_PARAMETER, org.acplt.oncrpc.OncRpcReplyMessage
.UNUSED_PARAMETER, org.acplt.oncrpc.OncRpcReplyMessage.UNUSED_PARAMETER, org.acplt.oncrpc.OncRpcAuthStatus
.ONCRPC_AUTH_OK)
{
}
开发者ID:mushuanli,项目名称:nekodrive,代码行数:21,代码来源:OncRpcServerAcceptedCallMessage.cs
示例10: Broker
public Broker(org.apache.qpid.console.Session session, BrokerURL url)
{
log.Debug("Creating a new Broker for url " + url) ;
this.url = url;
consoleSession = session ;
this.TryToConnect() ;
}
开发者ID:drzo,项目名称:opensim4opencog,代码行数:7,代码来源:Broker.cs
示例11: JrpcgenUnion
/// <summary>
/// Constructs a <code>JrpcgenUnion</code> and sets the identifier, the
/// descrimant element as well as all attribute elements.
/// </summary>
/// <remarks>
/// Constructs a <code>JrpcgenUnion</code> and sets the identifier, the
/// descrimant element as well as all attribute elements.
/// </remarks>
/// <param name="identifier">Identifier to be declared.</param>
/// <param name="descriminant">
/// Descriminant element of class
/// <see cref="JrpcgenDeclaration">JrpcgenDeclaration</see>
/// .
/// </param>
/// <param name="elements">
/// Vector of atrribute elements of class
/// <see cref="JrpcgenDeclaration">JrpcgenDeclaration</see>
/// .
/// </param>
public JrpcgenUnion(string identifier, org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration
descriminant, System.Collections.ArrayList elements)
{
this.identifier = identifier;
this.descriminant = descriminant;
this.elements = elements;
}
开发者ID:mushuanli,项目名称:nekodrive,代码行数:26,代码来源:JrpcgenUnion.cs
示例12: assertCComplexObject
//protected java.io.InputStream loadFromClasspath(String adl)
//{
// return (java.lang.Object)this.getClass().getClassLoader().getResourceAsStream(adl);
//}
// assert CComplexObject object has expected values
public void assertCComplexObject(org.openehr.am.archetype.constraintmodel.CComplexObject obj, String rmTypeName,
String nodeID, org.openehr.rm.support.basic.Interval occurrences,
int attributes)
{
assertCObject(obj, rmTypeName, nodeID, occurrences);
Assert.AreEqual(attributes, obj.getAttributes().size(), "attributes.size");
}
开发者ID:ZJU-BME-VICO,项目名称:openehr-ikvm,代码行数:12,代码来源:ParserTestBase.cs
示例13: createFromXml
public static global::android.content.res.ColorStateList createFromXml(android.content.res.Resources arg0, org.xmlpull.v1.XmlPullParser arg1)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.content.res.ColorStateList._m5.native == global::System.IntPtr.Zero)
global::android.content.res.ColorStateList._m5 = @__env.GetStaticMethodIDNoThrow(global::android.content.res.ColorStateList.staticClass, "createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/content/res/ColorStateList;");
return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(android.content.res.ColorStateList.staticClass, global::android.content.res.ColorStateList._m5, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1))) as android.content.res.ColorStateList;
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:ColorStateList.cs
示例14: CompletarDetallesWS
public void CompletarDetallesWS(org.dyndns.cedweb.consulta.ConsultarResult lc)
{
lineas = new System.Collections.Generic.List<FeaEntidades.InterFacturas.linea>();
foreach (org.dyndns.cedweb.consulta.ConsultarResultComprobanteDetalleLinea l in lc.comprobante[0].detalle.linea)
{
FeaEntidades.InterFacturas.linea linea = new FeaEntidades.InterFacturas.linea();
//Compatibilidad con archivos xml viejos. Verificar si la descripcion está en Hexa.
if (l.descripcion != "" && l.descripcion.Substring(0, 1) == "%")
{
linea.descripcion = RN.Funciones.HexToString(l.descripcion).Replace("<br>", System.Environment.NewLine);
}
else
{
linea.descripcion = l.descripcion.Replace("<br>", System.Environment.NewLine);
}
if (l.alicuota_ivaSpecified)
{
linea.alicuota_iva = l.alicuota_iva;
}
else
{
linea.alicuota_iva = new FeaEntidades.IVA.SinInformar().Codigo;
}
linea.alicuota_ivaSpecified = l.alicuota_ivaSpecified;
linea.importe_ivaSpecified = l.importe_ivaSpecified;
if (l.unidad != null)
{
linea.unidad = l.unidad;
}
else
{
linea.unidad = Convert.ToString(new FeaEntidades.CodigosUnidad.SinInformar().Codigo);
}
linea.cantidad = l.cantidad;
linea.cantidadSpecified = l.cantidadSpecified;
linea.codigo_producto_comprador = l.codigo_producto_comprador;
linea.codigo_producto_vendedor = l.codigo_producto_vendedor;
linea.indicacion_exento_gravado = l.indicacion_exento_gravado;
if (l.importes_moneda_origen == null)
{
linea.importe_total_articulo = l.importe_total_articulo;
linea.importe_iva = l.importe_iva;
linea.precio_unitario = l.precio_unitario;
linea.precio_unitarioSpecified = l.precio_unitarioSpecified;
}
else
{
linea.importe_total_articulo = l.importes_moneda_origen.importe_total_articulo;
linea.importe_iva = l.importes_moneda_origen.importe_iva;
linea.precio_unitario = l.importes_moneda_origen.precio_unitario;
linea.precio_unitarioSpecified = l.importes_moneda_origen.precio_unitarioSpecified;
}
lineas.Add(linea);
}
detalleGridView.DataSource = lineas;
detalleGridView.DataBind();
BindearDropDownLists();
ViewState["lineas"] = lineas;
}
开发者ID:pjeconde,项目名称:CedServicios,代码行数:60,代码来源:DetalleConsulta.ascx.cs
示例15: DOMStructure
/**
* Creates a <code>DOMStructure</code> containing the specified node.
*
* @param node the node
* @throws NullPointerException if <code>node</code> is <code>null</code>
*/
public DOMStructure(org.w3c.dom.Node node)
{
if (node == null) {
throw new java.lang.NullPointerException("node cannot be null");
}
this.node = node;
}
开发者ID:sailesh341,项目名称:JavApi,代码行数:13,代码来源:DOMStructure.cs
示例16: LyricsUpdater
public LyricsUpdater(IITTrackCollection selectedTracks, org.lyricwiki.LyricWiki lyricsWiki, Boolean overwrite, frmResult form)
{
this.m_selectedTracks = selectedTracks;
this.m_lyricsWiki = lyricsWiki;
this.m_overwrite = overwrite;
this.m_form = form;
}
开发者ID:JacobHeymann,项目名称:ilyrics,代码行数:7,代码来源:LyricsUpdater.cs
示例17: OncRpcTcpConnectionServerTransport
/// <summary>
/// Create a new instance of a <code>OncRpcTcpSConnectionerverTransport</code>
/// which encapsulates TCP/IP-based XDR streams of an ONC/RPC server.
/// </summary>
/// <remarks>
/// Create a new instance of a <code>OncRpcTcpSConnectionerverTransport</code>
/// which encapsulates TCP/IP-based XDR streams of an ONC/RPC server. This
/// particular server transport handles individual ONC/RPC connections over
/// TCP/IP. This constructor is a convenience constructor for those transports
/// handling only a single ONC/RPC program and version number.
/// </remarks>
/// <param name="dispatcher">
/// Reference to interface of an object capable of
/// dispatching (handling) ONC/RPC calls.
/// </param>
/// <param name="socket">TCP/IP-based socket of new connection.</param>
/// <param name="program">
/// Number of ONC/RPC program handled by this server
/// transport.
/// </param>
/// <param name="version">Version number of ONC/RPC program handled.</param>
/// <param name="bufferSize">
/// Size of buffer used when receiving and sending
/// chunks of XDR fragments over TCP/IP. The fragments built up to
/// form ONC/RPC call and reply messages.
/// </param>
/// <param name="parent">Parent server transport which created us.</param>
/// <param name="transmissionTimeout">Inherited transmission timeout.</param>
/// <exception cref="org.acplt.oncrpc.OncRpcException"></exception>
/// <exception cref="System.IO.IOException"></exception>
public OncRpcTcpConnectionServerTransport(org.acplt.oncrpc.server.OncRpcDispatchable
dispatcher, Socket socket, int program, int version, int bufferSize, org.acplt.oncrpc.server.OncRpcTcpServerTransport
parent, int transmissionTimeout) : this(dispatcher, socket, new org.acplt.oncrpc.server.OncRpcServerTransportRegistrationInfo
[] { new org.acplt.oncrpc.server.OncRpcServerTransportRegistrationInfo(program,
version) }, bufferSize, parent, transmissionTimeout)
{
}
开发者ID:mushuanli,项目名称:nekodrive,代码行数:37,代码来源:OncRpcTcpConnectionServerTransport.cs
示例18: inflateTag
protected internal override bool inflateTag(string name, android.content.res.Resources
r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs)
{
if (name.Equals("corners"))
{
android.content.res.TypedArray a = r.obtainAttributes(attrs, [email protected]
styleable.DrawableCorners);
int radius = a.getDimensionPixelSize([email protected]_radius
, 0);
setCornerRadius(radius);
// now check of they have any per-corner radii
int topLeftRadius = a.getDimensionPixelSize([email protected]_topLeftRadius
, radius);
int topRightRadius = a.getDimensionPixelSize([email protected]_topRightRadius
, radius);
int bottomLeftRadius = a.getDimensionPixelSize([email protected]_bottomLeftRadius
, radius);
int bottomRightRadius = a.getDimensionPixelSize([email protected]_bottomRightRadius
, radius);
if (topLeftRadius != radius || topRightRadius != radius || bottomLeftRadius != radius
|| bottomRightRadius != radius)
{
setCornerRadii(new float[] { topLeftRadius, topLeftRadius, topRightRadius, topRightRadius
, bottomLeftRadius, bottomLeftRadius, bottomRightRadius, bottomRightRadius });
}
a.recycle();
return true;
}
return base.inflateTag(name, r, parser, attrs);
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:30,代码来源:PaintDrawable.cs
示例19: BuildCategoryDetails
private void BuildCategoryDetails(
org.apache.lucene.facet.Facets facets, IList<CategoryDetail> categoryDetails, CategoryOptions categoryOptions,
string categoryName, string[] label, int count, IEnumerable<string> drillDownValues)
{
var lastLabel = label.Last();
if (!drillDownValues.Contains(lastLabel))
{
categoryDetails.Add(new CategoryDetail { Value = lastLabel, Count = count });
//logger.Info("Value = {2} -- {0}; Count = {1}", lastLabel, count, String.Join("_ ", label));
}
else
{
var drilldownFacets = facets.getTopChildren(categoryOptions.MaxPerCategory, categoryName, label);
if (drilldownFacets != null)
{
var valDetail = new CategoryDetail { Value = lastLabel, Count = count };
categoryDetails.Add(valDetail);
foreach (var lv in drilldownFacets.labelValues)
{
var childLabel = new List<string>(label);
childLabel.Add(lv.label);
BuildCategoryDetails(
facets, valDetail.Children, categoryOptions,
categoryName, childLabel.ToArray(), lv.value.intValue(),
drillDownValues);
}
}
}
}
开发者ID:kevintavog,项目名称:FindAPhoto-1.net,代码行数:29,代码来源:CategoriesSearcher.cs
示例20: testStarted
public override void testStarted( org.junit.runner.Description description )
{
string name = description.getDisplayName();
if( !name.StartsWith( "initializationError" ) )
Console.WriteLine( name );
}
开发者ID:stoneroses,项目名称:objectfabric,代码行数:7,代码来源:JavaTestsRunner.cs
注:本文中的org类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论