//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.312
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.312.
// 
#pragma warning disable 1591

namespace StockForecasterClient.SFSService {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    using System.Data;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="StockInfoSoap", Namespace="http://tempuri.org/")]
    public partial class StockInfo : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback GetStockPriceInfoOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetFinancialInfoOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetCompetitiveStocksOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetCurrentDayPerformanceOperationCompleted;
        
        private System.Threading.SendOrPostCallback RegisterUserOperationCompleted;
        
        private System.Threading.SendOrPostCallback LoginUserOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetStockPerformanceOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetNextSpeculativePriceOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetSpeculativePriceOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetTradingTipsOperationCompleted;
        
        private System.Threading.SendOrPostCallback FindStockOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetGeneralStockInfoDALOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public StockInfo() {
            this.Url = global::StockForecasterClient.Properties.Settings.Default.StockForecasterClient_SFSService_StockInfo;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        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 GetStockPriceInfoCompletedEventHandler GetStockPriceInfoCompleted;
        
        /// <remarks/>
        public event GetFinancialInfoCompletedEventHandler GetFinancialInfoCompleted;
        
        /// <remarks/>
        public event GetCompetitiveStocksCompletedEventHandler GetCompetitiveStocksCompleted;
        
        /// <remarks/>
        public event GetCurrentDayPerformanceCompletedEventHandler GetCurrentDayPerformanceCompleted;
        
        /// <remarks/>
        public event RegisterUserCompletedEventHandler RegisterUserCompleted;
        
        /// <remarks/>
        public event LoginUserCompletedEventHandler LoginUserCompleted;
        
        /// <remarks/>
        public event GetStockPerformanceCompletedEventHandler GetStockPerformanceCompleted;
        
        /// <remarks/>
        public event GetNextSpeculativePriceCompletedEventHandler GetNextSpeculativePriceCompleted;
        
        /// <remarks/>
        public event GetSpeculativePriceCompletedEventHandler GetSpeculativePriceCompleted;
        
        /// <remarks/>
        public event GetTradingTipsCompletedEventHandler GetTradingTipsCompleted;
        
        /// <remarks/>
        public event FindStockCompletedEventHandler FindStockCompleted;
        
        /// <remarks/>
        public event GetGeneralStockInfoDALCompletedEventHandler GetGeneralStockInfoDALCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetStockPriceInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetStockPriceInfo(string stockID) {
            object[] results = this.Invoke("GetStockPriceInfo", new object[] {
                        stockID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetStockPriceInfoAsync(string stockID) {
            this.GetStockPriceInfoAsync(stockID, null);
        }
        
        /// <remarks/>
        public void GetStockPriceInfoAsync(string stockID, object userState) {
            if ((this.GetStockPriceInfoOperationCompleted == null)) {
                this.GetStockPriceInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStockPriceInfoOperationCompleted);
            }
            this.InvokeAsync("GetStockPriceInfo", new object[] {
                        stockID}, this.GetStockPriceInfoOperationCompleted, userState);
        }
        
        private void OnGetStockPriceInfoOperationCompleted(object arg) {
            if ((this.GetStockPriceInfoCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetStockPriceInfoCompleted(this, new GetStockPriceInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetFinancialInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetFinancialInfo(string stockID) {
            object[] results = this.Invoke("GetFinancialInfo", new object[] {
                        stockID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetFinancialInfoAsync(string stockID) {
            this.GetFinancialInfoAsync(stockID, null);
        }
        
        /// <remarks/>
        public void GetFinancialInfoAsync(string stockID, object userState) {
            if ((this.GetFinancialInfoOperationCompleted == null)) {
                this.GetFinancialInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFinancialInfoOperationCompleted);
            }
            this.InvokeAsync("GetFinancialInfo", new object[] {
                        stockID}, this.GetFinancialInfoOperationCompleted, userState);
        }
        
        private void OnGetFinancialInfoOperationCompleted(object arg) {
            if ((this.GetFinancialInfoCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetFinancialInfoCompleted(this, new GetFinancialInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetCompetitiveStocks", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetCompetitiveStocks(string stockID) {
            object[] results = this.Invoke("GetCompetitiveStocks", new object[] {
                        stockID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetCompetitiveStocksAsync(string stockID) {
            this.GetCompetitiveStocksAsync(stockID, null);
        }
        
        /// <remarks/>
        public void GetCompetitiveStocksAsync(string stockID, object userState) {
            if ((this.GetCompetitiveStocksOperationCompleted == null)) {
                this.GetCompetitiveStocksOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCompetitiveStocksOperationCompleted);
            }
            this.InvokeAsync("GetCompetitiveStocks", new object[] {
                        stockID}, this.GetCompetitiveStocksOperationCompleted, userState);
        }
        
        private void OnGetCompetitiveStocksOperationCompleted(object arg) {
            if ((this.GetCompetitiveStocksCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetCompetitiveStocksCompleted(this, new GetCompetitiveStocksCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetCurrentDayPerformance", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetCurrentDayPerformance(string stockID) {
            object[] results = this.Invoke("GetCurrentDayPerformance", new object[] {
                        stockID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetCurrentDayPerformanceAsync(string stockID) {
            this.GetCurrentDayPerformanceAsync(stockID, null);
        }
        
        /// <remarks/>
        public void GetCurrentDayPerformanceAsync(string stockID, object userState) {
            if ((this.GetCurrentDayPerformanceOperationCompleted == null)) {
                this.GetCurrentDayPerformanceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCurrentDayPerformanceOperationCompleted);
            }
            this.InvokeAsync("GetCurrentDayPerformance", new object[] {
                        stockID}, this.GetCurrentDayPerformanceOperationCompleted, userState);
        }
        
        private void OnGetCurrentDayPerformanceOperationCompleted(object arg) {
            if ((this.GetCurrentDayPerformanceCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetCurrentDayPerformanceCompleted(this, new GetCurrentDayPerformanceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/RegisterUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int RegisterUser(string firstName, string lastName, string userId, string pwd, string email) {
            object[] results = this.Invoke("RegisterUser", new object[] {
                        firstName,
                        lastName,
                        userId,
                        pwd,
                        email});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void RegisterUserAsync(string firstName, string lastName, string userId, string pwd, string email) {
            this.RegisterUserAsync(firstName, lastName, userId, pwd, email, null);
        }
        
        /// <remarks/>
        public void RegisterUserAsync(string firstName, string lastName, string userId, string pwd, string email, object userState) {
            if ((this.RegisterUserOperationCompleted == null)) {
                this.RegisterUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegisterUserOperationCompleted);
            }
            this.InvokeAsync("RegisterUser", new object[] {
                        firstName,
                        lastName,
                        userId,
                        pwd,
                        email}, this.RegisterUserOperationCompleted, userState);
        }
        
        private void OnRegisterUserOperationCompleted(object arg) {
            if ((this.RegisterUserCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RegisterUserCompleted(this, new RegisterUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LoginUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int LoginUser(string userId, string pwd) {
            object[] results = this.Invoke("LoginUser", new object[] {
                        userId,
                        pwd});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void LoginUserAsync(string userId, string pwd) {
            this.LoginUserAsync(userId, pwd, null);
        }
        
        /// <remarks/>
        public void LoginUserAsync(string userId, string pwd, object userState) {
            if ((this.LoginUserOperationCompleted == null)) {
                this.LoginUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLoginUserOperationCompleted);
            }
            this.InvokeAsync("LoginUser", new object[] {
                        userId,
                        pwd}, this.LoginUserOperationCompleted, userState);
        }
        
        private void OnLoginUserOperationCompleted(object arg) {
            if ((this.LoginUserCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LoginUserCompleted(this, new LoginUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetStockPerformance", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetStockPerformance(string stockID, int dayRangeCode) {
            object[] results = this.Invoke("GetStockPerformance", new object[] {
                        stockID,
                        dayRangeCode});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetStockPerformanceAsync(string stockID, int dayRangeCode) {
            this.GetStockPerformanceAsync(stockID, dayRangeCode, null);
        }
        
        /// <remarks/>
        public void GetStockPerformanceAsync(string stockID, int dayRangeCode, object userState) {
            if ((this.GetStockPerformanceOperationCompleted == null)) {
                this.GetStockPerformanceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStockPerformanceOperationCompleted);
            }
            this.InvokeAsync("GetStockPerformance", new object[] {
                        stockID,
                        dayRangeCode}, this.GetStockPerformanceOperationCompleted, userState);
        }
        
        private void OnGetStockPerformanceOperationCompleted(object arg) {
            if ((this.GetStockPerformanceCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetStockPerformanceCompleted(this, new GetStockPerformanceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetNextSpeculativePrice", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public decimal GetNextSpeculativePrice(string stockID) {
            object[] results = this.Invoke("GetNextSpeculativePrice", new object[] {
                        stockID});
            return ((decimal)(results[0]));
        }
        
        /// <remarks/>
        public void GetNextSpeculativePriceAsync(string stockID) {
            this.GetNextSpeculativePriceAsync(stockID, null);
        }
        
        /// <remarks/>
        public void GetNextSpeculativePriceAsync(string stockID, object userState) {
            if ((this.GetNextSpeculativePriceOperationCompleted == null)) {
                this.GetNextSpeculativePriceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNextSpeculativePriceOperationCompleted);
            }
            this.InvokeAsync("GetNextSpeculativePrice", new object[] {
                        stockID}, this.GetNextSpeculativePriceOperationCompleted, userState);
        }
        
        private void OnGetNextSpeculativePriceOperationCompleted(object arg) {
            if ((this.GetNextSpeculativePriceCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetNextSpeculativePriceCompleted(this, new GetNextSpeculativePriceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSpeculativePrice", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public decimal GetSpeculativePrice(string stockID, int termCode) {
            object[] results = this.Invoke("GetSpeculativePrice", new object[] {
                        stockID,
                        termCode});
            return ((decimal)(results[0]));
        }
        
        /// <remarks/>
        public void GetSpeculativePriceAsync(string stockID, int termCode) {
            this.GetSpeculativePriceAsync(stockID, termCode, null);
        }
        
        /// <remarks/>
        public void GetSpeculativePriceAsync(string stockID, int termCode, object userState) {
            if ((this.GetSpeculativePriceOperationCompleted == null)) {
                this.GetSpeculativePriceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSpeculativePriceOperationCompleted);
            }
            this.InvokeAsync("GetSpeculativePrice", new object[] {
                        stockID,
                        termCode}, this.GetSpeculativePriceOperationCompleted, userState);
        }
        
        private void OnGetSpeculativePriceOperationCompleted(object arg) {
            if ((this.GetSpeculativePriceCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetSpeculativePriceCompleted(this, new GetSpeculativePriceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetTradingTips", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetTradingTips(string stockId, int termCode) {
            object[] results = this.Invoke("GetTradingTips", new object[] {
                        stockId,
                        termCode});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetTradingTipsAsync(string stockId, int termCode) {
            this.GetTradingTipsAsync(stockId, termCode, null);
        }
        
        /// <remarks/>
        public void GetTradingTipsAsync(string stockId, int termCode, object userState) {
            if ((this.GetTradingTipsOperationCompleted == null)) {
                this.GetTradingTipsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTradingTipsOperationCompleted);
            }
            this.InvokeAsync("GetTradingTips", new object[] {
                        stockId,
                        termCode}, this.GetTradingTipsOperationCompleted, userState);
        }
        
        private void OnGetTradingTipsOperationCompleted(object arg) {
            if ((this.GetTradingTipsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetTradingTipsCompleted(this, new GetTradingTipsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/FindStock", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet FindStock(string companyName) {
            object[] results = this.Invoke("FindStock", new object[] {
                        companyName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void FindStockAsync(string companyName) {
            this.FindStockAsync(companyName, null);
        }
        
        /// <remarks/>
        public void FindStockAsync(string companyName, object userState) {
            if ((this.FindStockOperationCompleted == null)) {
                this.FindStockOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindStockOperationCompleted);
            }
            this.InvokeAsync("FindStock", new object[] {
                        companyName}, this.FindStockOperationCompleted, userState);
        }
        
        private void OnFindStockOperationCompleted(object arg) {
            if ((this.FindStockCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.FindStockCompleted(this, new FindStockCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGeneralStockInfoDAL", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetGeneralStockInfoDAL(string companyName) {
            object[] results = this.Invoke("GetGeneralStockInfoDAL", new object[] {
                        companyName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetGeneralStockInfoDALAsync(string companyName) {
            this.GetGeneralStockInfoDALAsync(companyName, null);
        }
        
        /// <remarks/>
        public void GetGeneralStockInfoDALAsync(string companyName, object userState) {
            if ((this.GetGeneralStockInfoDALOperationCompleted == null)) {
                this.GetGeneralStockInfoDALOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGeneralStockInfoDALOperationCompleted);
            }
            this.InvokeAsync("GetGeneralStockInfoDAL", new object[] {
                        companyName}, this.GetGeneralStockInfoDALOperationCompleted, userState);
        }
        
        private void OnGetGeneralStockInfoDALOperationCompleted(object arg) {
            if ((this.GetGeneralStockInfoDALCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetGeneralStockInfoDALCompleted(this, new GetGeneralStockInfoDALCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
        
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetStockPriceInfoCompletedEventHandler(object sender, GetStockPriceInfoCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetStockPriceInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetStockPriceInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetFinancialInfoCompletedEventHandler(object sender, GetFinancialInfoCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetFinancialInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetFinancialInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetCompetitiveStocksCompletedEventHandler(object sender, GetCompetitiveStocksCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetCompetitiveStocksCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetCompetitiveStocksCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetCurrentDayPerformanceCompletedEventHandler(object sender, GetCurrentDayPerformanceCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetCurrentDayPerformanceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetCurrentDayPerformanceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void RegisterUserCompletedEventHandler(object sender, RegisterUserCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RegisterUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RegisterUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void LoginUserCompletedEventHandler(object sender, LoginUserCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LoginUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal LoginUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetStockPerformanceCompletedEventHandler(object sender, GetStockPerformanceCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetStockPerformanceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetStockPerformanceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetNextSpeculativePriceCompletedEventHandler(object sender, GetNextSpeculativePriceCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetNextSpeculativePriceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetNextSpeculativePriceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public decimal Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((decimal)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetSpeculativePriceCompletedEventHandler(object sender, GetSpeculativePriceCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetSpeculativePriceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetSpeculativePriceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public decimal Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((decimal)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetTradingTipsCompletedEventHandler(object sender, GetTradingTipsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetTradingTipsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetTradingTipsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void FindStockCompletedEventHandler(object sender, FindStockCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class FindStockCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal FindStockCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    public delegate void GetGeneralStockInfoDALCompletedEventHandler(object sender, GetGeneralStockInfoDALCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.312")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetGeneralStockInfoDALCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetGeneralStockInfoDALCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591