public virtual void add(org.openrdf.model.Resource r, org.openrdf.model.URI uri, org.openrdf.model.Value v, params org.openrdf.model.Resource[] rarr) { IEnumerable<Uri> contexts = rarr.ToContexts(this._mapping); Graph g = new Graph(); g.Assert(SesameConverter.FromSesameResource(r, this._mapping), SesameConverter.FromSesameUri(uri, this._mapping), SesameConverter.FromSesameValue(v, this._mapping)); this.AddInternal(g, contexts); }
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); }
/// <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)); } }
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); }
/// <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) { }
/// <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); } }
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() ; }
// 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); } } }
/// <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; }
//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"); }
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; }
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; } }
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; }
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; }
/** * 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; }
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; }
public override void testStarted( org.junit.runner.Description description ) { string name = description.getDisplayName(); if( !name.StartsWith( "initializationError" ) ) Console.WriteLine( name ); }
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); } } } }
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); }
/// <summary> /// Encodes -- that is: serializes -- a ONC/RPC message header object /// into a XDR stream according to RFC 1831. /// </summary> /// <remarks> /// Encodes -- that is: serializes -- a ONC/RPC message header object /// into a XDR stream according to RFC 1831. /// </remarks> /// <param name="xdr">An encoding XDR stream where to put the mess in.</param> /// <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) { xdr.xdrEncodeInt(messageId); xdr.xdrEncodeInt(messageType); xdr.xdrEncodeInt(oncRpcVersion); xdr.xdrEncodeInt(program); xdr.xdrEncodeInt(version); xdr.xdrEncodeInt(procedure); // // Now encode the authentication data. If we have an authentication // protocol handling object at hand, then we let do the dirty work // for us. Otherwise, we fall back to AUTH_NONE handling. // if (auth != null) { auth.xdrEncodeCredVerf(xdr); } else { xdr.xdrEncodeInt(org.acplt.oncrpc.OncRpcAuthType.ONCRPC_AUTH_NONE); xdr.xdrEncodeInt(0); xdr.xdrEncodeInt(org.acplt.oncrpc.OncRpcAuthType.ONCRPC_AUTH_NONE); xdr.xdrEncodeInt(0); } }
/// <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) { }
public frmResult(IITTrackCollection selectedTracks, org.lyricwiki.LyricWiki lyricsWiki, Boolean overwrite) : this() { this.m_selectedTracks = selectedTracks; this.m_lyricsWiki = lyricsWiki; this.m_overwrite = overwrite; }
public void SaveDepToOrg() { Bll bll = new Bll(); List <Department> dlst = bll.Departments.ToList(); List <org> orgs = new List <org>(); for (int i = 0; i < dlst.Count; i++) { Department dept = dlst[i]; org org = new org(); org.id = dept.Abutment_Id ?? 0; org.name = dept.Name; org.parentId = dept.Abutment_ParentId; if (org.parentId == null) { org.parentId = dept.ParentId; } org.type = (int)dept.Type; org.description = dept.Description; //db.orgs.Add(org); orgs.Add(org); //if (i % 10 == 0) { Log.Info(LogTags.BaseData, string.Format("dept:{0}({1}/{2})", dept.Name, i + 1, dlst.Count)); } } Log.Info(LogTags.BaseData, "保存区域信息..."); BaseDataDb db = new BaseDataDb(); var r = db.SetTable(db.orgs, orgs); }
public override void inflate(android.content.res.Resources arg0, org.xmlpull.v1.XmlPullParser arg1, android.util.AttributeSet arg2) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) @__env.CallVoidMethod(this.JvmHandle, global::android.graphics.drawable.InsetDrawable._inflate4050, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2)); else @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.graphics.drawable.InsetDrawable.staticClass, global::android.graphics.drawable.InsetDrawable._inflate4050, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2)); }
void org.xml.sax.XMLReader.parse(org.xml.sax.InputSource arg0) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) @__env.CallVoidMethod(this.JvmHandle, global::org.xml.sax.XMLReader_._parse16542, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); else @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::org.xml.sax.XMLReader_.staticClass, global::org.xml.sax.XMLReader_._parse16542, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); }
void android.sax.StartElementListener.start(org.xml.sax.Attributes arg0) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) @__env.CallVoidMethod(this.JvmHandle, global::android.sax.StartElementListener_._start7256, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); else @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.sax.StartElementListener_.staticClass, global::android.sax.StartElementListener_._start7256, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); }
global::java.net.Socket org.apache.http.conn.scheme.SocketFactory.connectSocket(java.net.Socket arg0, java.lang.String arg1, int arg2, java.net.InetAddress arg3, int arg4, [email protected] arg5) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::org.apache.http.conn.scheme.SocketFactory_._connectSocket16418, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg5))) as java.net.Socket; else return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::org.apache.http.conn.scheme.SocketFactory_.staticClass, global::org.apache.http.conn.scheme.SocketFactory_._connectSocket16418, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg5))) as java.net.Socket; }
public virtual void setContentEncoding(org.apache.http.Header arg0) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) @__env.CallVoidMethod(this.JvmHandle, global::org.apache.http.entity.AbstractHttpEntity._setContentEncoding16450, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); else @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::org.apache.http.entity.AbstractHttpEntity.staticClass, global::org.apache.http.entity.AbstractHttpEntity._setContentEncoding16450, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); }
void org.apache.http.HttpMessage.setParams([email protected] arg0) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) @__env.CallVoidMethod(this.JvmHandle, global::org.apache.http.HttpRequest_._setParams16220, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); else @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::org.apache.http.HttpRequest_.staticClass, global::org.apache.http.HttpRequest_._setParams16220, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); }
global::java.lang.Object org.apache.http.client.HttpClient.execute(org.apache.http.client.methods.HttpUriRequest arg0, org.apache.http.client.ResponseHandler arg1, org.apache.http.protocol.HttpContext arg2) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::org.apache.http.client.HttpClient_._execute16289, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as java.lang.Object; else return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::org.apache.http.client.HttpClient_.staticClass, global::org.apache.http.client.HttpClient_._execute16289, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as java.lang.Object; }
global::org.apache.http.HttpResponse org.apache.http.client.HttpClient.execute(org.apache.http.HttpHost arg0, org.apache.http.HttpRequest arg1, org.apache.http.protocol.HttpContext arg2) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::org.apache.http.HttpResponse>(@__env.CallObjectMethod(this.JvmHandle, global::org.apache.http.client.HttpClient_._execute16287, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as org.apache.http.HttpResponse; else return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::org.apache.http.HttpResponse>(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::org.apache.http.client.HttpClient_.staticClass, global::org.apache.http.client.HttpClient_._execute16287, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as org.apache.http.HttpResponse; }
public static DetailOrg_M ToViewModel(string orgid, org data) { return(new DetailOrg_M() { data = data, orgid = orgid, orgname = data.orgname, description = data.description }); }
public BaseTran <org> GetorgList() { BaseTran <org> send = new BaseTran <org>(); List <org> lst = new List <org>(); foreach (var item in dict) { org data = new org(); data = item.Value.Clone(); lst.Add(data); } send.total = lst.Count; send.msg = "ok"; send.data = lst; return(send); }
private void Button_Click_2(object sender, RoutedEventArgs e) { if (CurrentUser.type != 0) { if (Login.Text != "") { if (Password.Password != "" && Password.Password.Length >= 5) { CurrentUser.name = Login.Text; CurrentUser.password = Password.Password; reg = new REG(); if (CurrentUser.type == 2) { var r = from o in org where o.orgname == Login.Text select o.Idorg; if (r.Max() == null) { reg.Login = Login.Text; reg.Password = Password.Password; Treg.InsertOnSubmit(reg); NewOrg = new org(); NewOrg.Idorg = (from o in org select o.Idorg).Max() + 1; if (NewOrg.Idorg == null) { NewOrg.Idorg = 1; } NewOrg.orgname = Login.Text; org.InsertOnSubmit(NewOrg); try { db.SubmitChanges(); MessageBox.Show("Компания зарегистрирована!\nВаш логин: " + reg.Login + "\nВаш пароль: " + reg.Password); CurrentUser.flag = false; } catch (Exception) { MessageBox.Show("Ошибка регистрации!"); } finally { ch?.Invoke(this, new EventArgs()); if (CurrentUser.flag == false) { this.Close(); } this.Close(); } } else { MessageBox.Show("Компания уже зарегистрирована."); } } if (CurrentUser.type == 1) { var r = from a in Treg where a.Login == Login.Text select a.Login; if (r.Max() == null) { reg.Login = Login.Text; reg.Password = Password.Password; Treg.InsertOnSubmit(reg); try { db.SubmitChanges(); MessageBox.Show("Вы успешно зарегистрированы!\nВаш логин: " + reg.Login + "\nВаш пароль: " + reg.Password); CurrentUser.flag = false; } catch (Exception) { MessageBox.Show("Ошибка регистрации!"); } finally { ch?.Invoke(this, new EventArgs()); if (CurrentUser.flag == false) { this.Close(); } this.Close(); } } else { MessageBox.Show("Пользователь с таким именем уже есть."); } } } else { MessageBox.Show("Введите корректный пароль (не менее 5 символов)"); } } else { MessageBox.Show("Введите логин"); } } else { MessageBox.Show("Кто же вы?"); } }