⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reference.cs

📁 中国象棋网络版C#源码 Visual studio 2005,C#开发 中国象棋网络版
💻 CS
📖 第 1 页 / 共 4 页
字号:
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行库版本:2.0.50727.42
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 2.0.50727.42 版自动生成。
// 
#pragma warning disable 1591

namespace GameWorld.ChineseChessService {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="ChineseChessSoap", Namespace="http://hawkwolf.com/webservices/")]
    public partial class ChineseChess : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private CredentialSoapHeader credentialSoapHeaderValueField;
        
        private System.Threading.SendOrPostCallback MoveOperationCompleted;
        
        private System.Threading.SendOrPostCallback GiveUpOperationCompleted;
        
        private System.Threading.SendOrPostCallback StartSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback AnswerDrawOperationCompleted;
        
        private System.Threading.SendOrPostCallback AskDrawOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetRecentSetsOperationCompleted;
        
        private System.Threading.SendOrPostCallback SitDownOperationCompleted;
        
        private System.Threading.SendOrPostCallback StandUpOperationCompleted;
        
        private System.Threading.SendOrPostCallback RegisterRoomOperationCompleted;
        
        private System.Threading.SendOrPostCallback UnRegisterRoomOperationCompleted;
        
        private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
        
        private System.Threading.SendOrPostCallback StartMatchOperationCompleted;
        
        private System.Threading.SendOrPostCallback EndMatchOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMessageOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public ChineseChess() {
            this.Url = global::GameWorld.Properties.Settings.Default.GameWorld_ChineseChessService_ChineseChess;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public CredentialSoapHeader CredentialSoapHeaderValue {
            get {
                return this.credentialSoapHeaderValueField;
            }
            set {
                this.credentialSoapHeaderValueField = value;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event MoveCompletedEventHandler MoveCompleted;
        
        /// <remarks/>
        public event GiveUpCompletedEventHandler GiveUpCompleted;
        
        /// <remarks/>
        public event StartSetCompletedEventHandler StartSetCompleted;
        
        /// <remarks/>
        public event AnswerDrawCompletedEventHandler AnswerDrawCompleted;
        
        /// <remarks/>
        public event AskDrawCompletedEventHandler AskDrawCompleted;
        
        /// <remarks/>
        public event GetRecentSetsCompletedEventHandler GetRecentSetsCompleted;
        
        /// <remarks/>
        public event SitDownCompletedEventHandler SitDownCompleted;
        
        /// <remarks/>
        public event StandUpCompletedEventHandler StandUpCompleted;
        
        /// <remarks/>
        public event RegisterRoomCompletedEventHandler RegisterRoomCompleted;
        
        /// <remarks/>
        public event UnRegisterRoomCompletedEventHandler UnRegisterRoomCompleted;
        
        /// <remarks/>
        public event HelloWorldCompletedEventHandler HelloWorldCompleted;
        
        /// <remarks/>
        public event StartMatchCompletedEventHandler StartMatchCompleted;
        
        /// <remarks/>
        public event EndMatchCompletedEventHandler EndMatchCompleted;
        
        /// <remarks/>
        public event GetMessageCompletedEventHandler GetMessageCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/Move", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string Move(int x1, int y1, int x2, int y2) {
            object[] results = this.Invoke("Move", new object[] {
                        x1,
                        y1,
                        x2,
                        y2});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void MoveAsync(int x1, int y1, int x2, int y2) {
            this.MoveAsync(x1, y1, x2, y2, null);
        }
        
        /// <remarks/>
        public void MoveAsync(int x1, int y1, int x2, int y2, object userState) {
            if ((this.MoveOperationCompleted == null)) {
                this.MoveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMoveOperationCompleted);
            }
            this.InvokeAsync("Move", new object[] {
                        x1,
                        y1,
                        x2,
                        y2}, this.MoveOperationCompleted, userState);
        }
        
        private void OnMoveOperationCompleted(object arg) {
            if ((this.MoveCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.MoveCompleted(this, new MoveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/GiveUp", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GiveUp() {
            object[] results = this.Invoke("GiveUp", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GiveUpAsync() {
            this.GiveUpAsync(null);
        }
        
        /// <remarks/>
        public void GiveUpAsync(object userState) {
            if ((this.GiveUpOperationCompleted == null)) {
                this.GiveUpOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGiveUpOperationCompleted);
            }
            this.InvokeAsync("GiveUp", new object[0], this.GiveUpOperationCompleted, userState);
        }
        
        private void OnGiveUpOperationCompleted(object arg) {
            if ((this.GiveUpCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GiveUpCompleted(this, new GiveUpCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/StartSet", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string StartSet() {
            object[] results = this.Invoke("StartSet", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void StartSetAsync() {
            this.StartSetAsync(null);
        }
        
        /// <remarks/>
        public void StartSetAsync(object userState) {
            if ((this.StartSetOperationCompleted == null)) {
                this.StartSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStartSetOperationCompleted);
            }
            this.InvokeAsync("StartSet", new object[0], this.StartSetOperationCompleted, userState);
        }
        
        private void OnStartSetOperationCompleted(object arg) {
            if ((this.StartSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.StartSetCompleted(this, new StartSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/AnswerDraw", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string AnswerDraw(bool bAgree) {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -