//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1433
//
//     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.1433.
// 
#pragma warning disable 1591

namespace EQTrack.BlackhawkAdminService {
    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.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="AdminServiceSoap", Namespace="http://www.theblackhawk.co.nz/")]
    public partial class AdminService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback AddCompanyWithDetailsOperationCompleted;
        
        private System.Threading.SendOrPostCallback CopyCompanyToBillingOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetBillingDetailsOperationCompleted;
        
        private System.Threading.SendOrPostCallback JSGetBillingDetailsOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddCompanyOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetCompanyOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetCompaniesOperationCompleted;
        
        private System.Threading.SendOrPostCallback JSGetCompaniesOperationCompleted;
        
        private System.Threading.SendOrPostCallback SearchCompaniesOperationCompleted;
        
        private System.Threading.SendOrPostCallback RemoveCompanyOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback CreateSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback LinkSiteToDeviceSetOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetDeviceSetOfSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetSitesOperationCompleted;
        
        private System.Threading.SendOrPostCallback SearchSitesOperationCompleted;
        
        private System.Threading.SendOrPostCallback RemoveSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetCurrentSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddStaffOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddStaffWithLoginOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetStaffOfCompanyOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetStaffOfSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetStaffIDOperationCompleted;
        
        private System.Threading.SendOrPostCallback SearchStaffOperationCompleted;
        
        private System.Threading.SendOrPostCallback RemoveStaffOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddLoginOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetLoginsOfCompanyOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetLoginsOfSiteOperationCompleted;
        
        private System.Threading.SendOrPostCallback SearchLoginsOperationCompleted;
        
        private System.Threading.SendOrPostCallback RemoveLoginOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetPasswordOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetUserRoleOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetDeviceSetIDOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetDeviceSetsOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMyDeviceSetIDOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMyDeviceSetsOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public AdminService() {
            this.Url = global::EQTrack.Properties.Settings.Default.EQTrack_BlackhawkAdminService_AdminService;
            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 AddCompanyWithDetailsCompletedEventHandler AddCompanyWithDetailsCompleted;
        
        /// <remarks/>
        public event CopyCompanyToBillingCompletedEventHandler CopyCompanyToBillingCompleted;
        
        /// <remarks/>
        public event GetBillingDetailsCompletedEventHandler GetBillingDetailsCompleted;
        
        /// <remarks/>
        public event JSGetBillingDetailsCompletedEventHandler JSGetBillingDetailsCompleted;
        
        /// <remarks/>
        public event AddCompanyCompletedEventHandler AddCompanyCompleted;
        
        /// <remarks/>
        public event GetCompanyCompletedEventHandler GetCompanyCompleted;
        
        /// <remarks/>
        public event GetCompaniesCompletedEventHandler GetCompaniesCompleted;
        
        /// <remarks/>
        public event JSGetCompaniesCompletedEventHandler JSGetCompaniesCompleted;
        
        /// <remarks/>
        public event SearchCompaniesCompletedEventHandler SearchCompaniesCompleted;
        
        /// <remarks/>
        public event RemoveCompanyCompletedEventHandler RemoveCompanyCompleted;
        
        /// <remarks/>
        public event AddSiteCompletedEventHandler AddSiteCompleted;
        
        /// <remarks/>
        public event CreateSiteCompletedEventHandler CreateSiteCompleted;
        
        /// <remarks/>
        public event LinkSiteToDeviceSetCompletedEventHandler LinkSiteToDeviceSetCompleted;
        
        /// <remarks/>
        public event GetDeviceSetOfSiteCompletedEventHandler GetDeviceSetOfSiteCompleted;
        
        /// <remarks/>
        public event GetSitesCompletedEventHandler GetSitesCompleted;
        
        /// <remarks/>
        public event SearchSitesCompletedEventHandler SearchSitesCompleted;
        
        /// <remarks/>
        public event RemoveSiteCompletedEventHandler RemoveSiteCompleted;
        
        /// <remarks/>
        public event SetCurrentSiteCompletedEventHandler SetCurrentSiteCompleted;
        
        /// <remarks/>
        public event AddStaffCompletedEventHandler AddStaffCompleted;
        
        /// <remarks/>
        public event AddStaffWithLoginCompletedEventHandler AddStaffWithLoginCompleted;
        
        /// <remarks/>
        public event GetStaffOfCompanyCompletedEventHandler GetStaffOfCompanyCompleted;
        
        /// <remarks/>
        public event GetStaffOfSiteCompletedEventHandler GetStaffOfSiteCompleted;
        
        /// <remarks/>
        public event GetStaffIDCompletedEventHandler GetStaffIDCompleted;
        
        /// <remarks/>
        public event SearchStaffCompletedEventHandler SearchStaffCompleted;
        
        /// <remarks/>
        public event RemoveStaffCompletedEventHandler RemoveStaffCompleted;
        
        /// <remarks/>
        public event AddLoginCompletedEventHandler AddLoginCompleted;
        
        /// <remarks/>
        public event GetLoginsOfCompanyCompletedEventHandler GetLoginsOfCompanyCompleted;
        
        /// <remarks/>
        public event GetLoginsOfSiteCompletedEventHandler GetLoginsOfSiteCompleted;
        
        /// <remarks/>
        public event SearchLoginsCompletedEventHandler SearchLoginsCompleted;
        
        /// <remarks/>
        public event RemoveLoginCompletedEventHandler RemoveLoginCompleted;
        
        /// <remarks/>
        public event SetPasswordCompletedEventHandler SetPasswordCompleted;
        
        /// <remarks/>
        public event SetUserRoleCompletedEventHandler SetUserRoleCompleted;
        
        /// <remarks/>
        public event GetDeviceSetIDCompletedEventHandler GetDeviceSetIDCompleted;
        
        /// <remarks/>
        public event GetDeviceSetsCompletedEventHandler GetDeviceSetsCompleted;
        
        /// <remarks/>
        public event GetMyDeviceSetIDCompletedEventHandler GetMyDeviceSetIDCompleted;
        
        /// <remarks/>
        public event GetMyDeviceSetsCompletedEventHandler GetMyDeviceSetsCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddCompanyWithDetails", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddCompanyWithDetails(string CompanyName, string firstname, string secondname, string email, string password, string address1, string address2, string city, string state, string country, string postcode, string telephone, int DeviceSet) {
            object[] results = this.Invoke("AddCompanyWithDetails", new object[] {
                        CompanyName,
                        firstname,
                        secondname,
                        email,
                        password,
                        address1,
                        address2,
                        city,
                        state,
                        country,
                        postcode,
                        telephone,
                        DeviceSet});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddCompanyWithDetailsAsync(string CompanyName, string firstname, string secondname, string email, string password, string address1, string address2, string city, string state, string country, string postcode, string telephone, int DeviceSet) {
            this.AddCompanyWithDetailsAsync(CompanyName, firstname, secondname, email, password, address1, address2, city, state, country, postcode, telephone, DeviceSet, null);
        }
        
        /// <remarks/>
        public void AddCompanyWithDetailsAsync(string CompanyName, string firstname, string secondname, string email, string password, string address1, string address2, string city, string state, string country, string postcode, string telephone, int DeviceSet, object userState) {
            if ((this.AddCompanyWithDetailsOperationCompleted == null)) {
                this.AddCompanyWithDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddCompanyWithDetailsOperationCompleted);
            }
            this.InvokeAsync("AddCompanyWithDetails", new object[] {
                        CompanyName,
                        firstname,
                        secondname,
                        email,
                        password,
                        address1,
                        address2,
                        city,
                        state,
                        country,
                        postcode,
                        telephone,
                        DeviceSet}, this.AddCompanyWithDetailsOperationCompleted, userState);
        }
        
        private void OnAddCompanyWithDetailsOperationCompleted(object arg) {
            if ((this.AddCompanyWithDetailsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddCompanyWithDetailsCompleted(this, new AddCompanyWithDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/CopyCompanyToBilling", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int CopyCompanyToBilling(string CompanyName, string firstname, string secondname, string email, string password, string address1, string address2, string city, string state, string country, string postcode, string telephone) {
            object[] results = this.Invoke("CopyCompanyToBilling", new object[] {
                        CompanyName,
                        firstname,
                        secondname,
                        email,
                        password,
                        address1,
                        address2,
                        city,
                        state,
                        country,
                        postcode,
                        telephone});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void CopyCompanyToBillingAsync(string CompanyName, string firstname, string secondname, string email, string password, string address1, string address2, string city, string state, string country, string postcode, string telephone) {
            this.CopyCompanyToBillingAsync(CompanyName, firstname, secondname, email, password, address1, address2, city, state, country, postcode, telephone, null);
        }
        
        /// <remarks/>
        public void CopyCompanyToBillingAsync(string CompanyName, string firstname, string secondname, string email, string password, string address1, string address2, string city, string state, string country, string postcode, string telephone, object userState) {
            if ((this.CopyCompanyToBillingOperationCompleted == null)) {
                this.CopyCompanyToBillingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCopyCompanyToBillingOperationCompleted);
            }
            this.InvokeAsync("CopyCompanyToBilling", new object[] {
                        CompanyName,
                        firstname,
                        secondname,
                        email,
                        password,
                        address1,
                        address2,
                        city,
                        state,
                        country,
                        postcode,
                        telephone}, this.CopyCompanyToBillingOperationCompleted, userState);
        }
        
        private void OnCopyCompanyToBillingOperationCompleted(object arg) {
            if ((this.CopyCompanyToBillingCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CopyCompanyToBillingCompleted(this, new CopyCompanyToBillingCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetBillingDetails", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetBillingDetails(int CompanyID) {
            object[] results = this.Invoke("GetBillingDetails", new object[] {
                        CompanyID});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetBillingDetailsAsync(int CompanyID) {
            this.GetBillingDetailsAsync(CompanyID, null);
        }
        
        /// <remarks/>
        public void GetBillingDetailsAsync(int CompanyID, object userState) {
            if ((this.GetBillingDetailsOperationCompleted == null)) {
                this.GetBillingDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBillingDetailsOperationCompleted);
            }
            this.InvokeAsync("GetBillingDetails", new object[] {
                        CompanyID}, this.GetBillingDetailsOperationCompleted, userState);
        }
        
        private void OnGetBillingDetailsOperationCompleted(object arg) {
            if ((this.GetBillingDetailsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetBillingDetailsCompleted(this, new GetBillingDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/JSGetBillingDetails", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string JSGetBillingDetails(int CompanyID) {
            object[] results = this.Invoke("JSGetBillingDetails", new object[] {
                        CompanyID});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void JSGetBillingDetailsAsync(int CompanyID) {
            this.JSGetBillingDetailsAsync(CompanyID, null);
        }
        
        /// <remarks/>
        public void JSGetBillingDetailsAsync(int CompanyID, object userState) {
            if ((this.JSGetBillingDetailsOperationCompleted == null)) {
                this.JSGetBillingDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnJSGetBillingDetailsOperationCompleted);
            }
            this.InvokeAsync("JSGetBillingDetails", new object[] {
                        CompanyID}, this.JSGetBillingDetailsOperationCompleted, userState);
        }
        
        private void OnJSGetBillingDetailsOperationCompleted(object arg) {
            if ((this.JSGetBillingDetailsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.JSGetBillingDetailsCompleted(this, new JSGetBillingDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddCompany", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddCompany(string CompanyName, int DeviceSet) {
            object[] results = this.Invoke("AddCompany", new object[] {
                        CompanyName,
                        DeviceSet});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddCompanyAsync(string CompanyName, int DeviceSet) {
            this.AddCompanyAsync(CompanyName, DeviceSet, null);
        }
        
        /// <remarks/>
        public void AddCompanyAsync(string CompanyName, int DeviceSet, object userState) {
            if ((this.AddCompanyOperationCompleted == null)) {
                this.AddCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddCompanyOperationCompleted);
            }
            this.InvokeAsync("AddCompany", new object[] {
                        CompanyName,
                        DeviceSet}, this.AddCompanyOperationCompleted, userState);
        }
        
        private void OnAddCompanyOperationCompleted(object arg) {
            if ((this.AddCompanyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddCompanyCompleted(this, new AddCompanyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetCompany", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetCompany() {
            object[] results = this.Invoke("GetCompany", new object[0]);
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void GetCompanyAsync() {
            this.GetCompanyAsync(null);
        }
        
        /// <remarks/>
        public void GetCompanyAsync(object userState) {
            if ((this.GetCompanyOperationCompleted == null)) {
                this.GetCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCompanyOperationCompleted);
            }
            this.InvokeAsync("GetCompany", new object[0], this.GetCompanyOperationCompleted, userState);
        }
        
        private void OnGetCompanyOperationCompleted(object arg) {
            if ((this.GetCompanyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetCompanyCompleted(this, new GetCompanyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetCompanies", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetCompanies(string ParentCompanyName) {
            object[] results = this.Invoke("GetCompanies", new object[] {
                        ParentCompanyName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetCompaniesAsync(string ParentCompanyName) {
            this.GetCompaniesAsync(ParentCompanyName, null);
        }
        
        /// <remarks/>
        public void GetCompaniesAsync(string ParentCompanyName, object userState) {
            if ((this.GetCompaniesOperationCompleted == null)) {
                this.GetCompaniesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCompaniesOperationCompleted);
            }
            this.InvokeAsync("GetCompanies", new object[] {
                        ParentCompanyName}, this.GetCompaniesOperationCompleted, userState);
        }
        
        private void OnGetCompaniesOperationCompleted(object arg) {
            if ((this.GetCompaniesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetCompaniesCompleted(this, new GetCompaniesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/JSGetCompanies", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string JSGetCompanies(string ParentCompanyName) {
            object[] results = this.Invoke("JSGetCompanies", new object[] {
                        ParentCompanyName});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void JSGetCompaniesAsync(string ParentCompanyName) {
            this.JSGetCompaniesAsync(ParentCompanyName, null);
        }
        
        /// <remarks/>
        public void JSGetCompaniesAsync(string ParentCompanyName, object userState) {
            if ((this.JSGetCompaniesOperationCompleted == null)) {
                this.JSGetCompaniesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnJSGetCompaniesOperationCompleted);
            }
            this.InvokeAsync("JSGetCompanies", new object[] {
                        ParentCompanyName}, this.JSGetCompaniesOperationCompleted, userState);
        }
        
        private void OnJSGetCompaniesOperationCompleted(object arg) {
            if ((this.JSGetCompaniesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.JSGetCompaniesCompleted(this, new JSGetCompaniesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SearchCompanies", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet SearchCompanies(string PartialCompanyName) {
            object[] results = this.Invoke("SearchCompanies", new object[] {
                        PartialCompanyName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void SearchCompaniesAsync(string PartialCompanyName) {
            this.SearchCompaniesAsync(PartialCompanyName, null);
        }
        
        /// <remarks/>
        public void SearchCompaniesAsync(string PartialCompanyName, object userState) {
            if ((this.SearchCompaniesOperationCompleted == null)) {
                this.SearchCompaniesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchCompaniesOperationCompleted);
            }
            this.InvokeAsync("SearchCompanies", new object[] {
                        PartialCompanyName}, this.SearchCompaniesOperationCompleted, userState);
        }
        
        private void OnSearchCompaniesOperationCompleted(object arg) {
            if ((this.SearchCompaniesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SearchCompaniesCompleted(this, new SearchCompaniesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RemoveCompany", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool RemoveCompany(string CompanyName) {
            object[] results = this.Invoke("RemoveCompany", new object[] {
                        CompanyName});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void RemoveCompanyAsync(string CompanyName) {
            this.RemoveCompanyAsync(CompanyName, null);
        }
        
        /// <remarks/>
        public void RemoveCompanyAsync(string CompanyName, object userState) {
            if ((this.RemoveCompanyOperationCompleted == null)) {
                this.RemoveCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveCompanyOperationCompleted);
            }
            this.InvokeAsync("RemoveCompany", new object[] {
                        CompanyName}, this.RemoveCompanyOperationCompleted, userState);
        }
        
        private void OnRemoveCompanyOperationCompleted(object arg) {
            if ((this.RemoveCompanyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RemoveCompanyCompleted(this, new RemoveCompanyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddSite(string SiteName, int CompanyID) {
            object[] results = this.Invoke("AddSite", new object[] {
                        SiteName,
                        CompanyID});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddSiteAsync(string SiteName, int CompanyID) {
            this.AddSiteAsync(SiteName, CompanyID, null);
        }
        
        /// <remarks/>
        public void AddSiteAsync(string SiteName, int CompanyID, object userState) {
            if ((this.AddSiteOperationCompleted == null)) {
                this.AddSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddSiteOperationCompleted);
            }
            this.InvokeAsync("AddSite", new object[] {
                        SiteName,
                        CompanyID}, this.AddSiteOperationCompleted, userState);
        }
        
        private void OnAddSiteOperationCompleted(object arg) {
            if ((this.AddSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddSiteCompleted(this, new AddSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/CreateSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int CreateSite(string SiteName, int CompanyID) {
            object[] results = this.Invoke("CreateSite", new object[] {
                        SiteName,
                        CompanyID});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void CreateSiteAsync(string SiteName, int CompanyID) {
            this.CreateSiteAsync(SiteName, CompanyID, null);
        }
        
        /// <remarks/>
        public void CreateSiteAsync(string SiteName, int CompanyID, object userState) {
            if ((this.CreateSiteOperationCompleted == null)) {
                this.CreateSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateSiteOperationCompleted);
            }
            this.InvokeAsync("CreateSite", new object[] {
                        SiteName,
                        CompanyID}, this.CreateSiteOperationCompleted, userState);
        }
        
        private void OnCreateSiteOperationCompleted(object arg) {
            if ((this.CreateSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreateSiteCompleted(this, new CreateSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/LinkSiteToDeviceSet", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int LinkSiteToDeviceSet(int Site, int DeviceSetID) {
            object[] results = this.Invoke("LinkSiteToDeviceSet", new object[] {
                        Site,
                        DeviceSetID});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void LinkSiteToDeviceSetAsync(int Site, int DeviceSetID) {
            this.LinkSiteToDeviceSetAsync(Site, DeviceSetID, null);
        }
        
        /// <remarks/>
        public void LinkSiteToDeviceSetAsync(int Site, int DeviceSetID, object userState) {
            if ((this.LinkSiteToDeviceSetOperationCompleted == null)) {
                this.LinkSiteToDeviceSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLinkSiteToDeviceSetOperationCompleted);
            }
            this.InvokeAsync("LinkSiteToDeviceSet", new object[] {
                        Site,
                        DeviceSetID}, this.LinkSiteToDeviceSetOperationCompleted, userState);
        }
        
        private void OnLinkSiteToDeviceSetOperationCompleted(object arg) {
            if ((this.LinkSiteToDeviceSetCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LinkSiteToDeviceSetCompleted(this, new LinkSiteToDeviceSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetDeviceSetOfSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetDeviceSetOfSite(int Site) {
            object[] results = this.Invoke("GetDeviceSetOfSite", new object[] {
                        Site});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void GetDeviceSetOfSiteAsync(int Site) {
            this.GetDeviceSetOfSiteAsync(Site, null);
        }
        
        /// <remarks/>
        public void GetDeviceSetOfSiteAsync(int Site, object userState) {
            if ((this.GetDeviceSetOfSiteOperationCompleted == null)) {
                this.GetDeviceSetOfSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDeviceSetOfSiteOperationCompleted);
            }
            this.InvokeAsync("GetDeviceSetOfSite", new object[] {
                        Site}, this.GetDeviceSetOfSiteOperationCompleted, userState);
        }
        
        private void OnGetDeviceSetOfSiteOperationCompleted(object arg) {
            if ((this.GetDeviceSetOfSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetDeviceSetOfSiteCompleted(this, new GetDeviceSetOfSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetSites", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetSites(int CompanyID) {
            object[] results = this.Invoke("GetSites", new object[] {
                        CompanyID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetSitesAsync(int CompanyID) {
            this.GetSitesAsync(CompanyID, null);
        }
        
        /// <remarks/>
        public void GetSitesAsync(int CompanyID, object userState) {
            if ((this.GetSitesOperationCompleted == null)) {
                this.GetSitesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSitesOperationCompleted);
            }
            this.InvokeAsync("GetSites", new object[] {
                        CompanyID}, this.GetSitesOperationCompleted, userState);
        }
        
        private void OnGetSitesOperationCompleted(object arg) {
            if ((this.GetSitesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetSitesCompleted(this, new GetSitesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SearchSites", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet SearchSites(string PartialSiteName, int CompanyID) {
            object[] results = this.Invoke("SearchSites", new object[] {
                        PartialSiteName,
                        CompanyID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void SearchSitesAsync(string PartialSiteName, int CompanyID) {
            this.SearchSitesAsync(PartialSiteName, CompanyID, null);
        }
        
        /// <remarks/>
        public void SearchSitesAsync(string PartialSiteName, int CompanyID, object userState) {
            if ((this.SearchSitesOperationCompleted == null)) {
                this.SearchSitesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchSitesOperationCompleted);
            }
            this.InvokeAsync("SearchSites", new object[] {
                        PartialSiteName,
                        CompanyID}, this.SearchSitesOperationCompleted, userState);
        }
        
        private void OnSearchSitesOperationCompleted(object arg) {
            if ((this.SearchSitesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SearchSitesCompleted(this, new SearchSitesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RemoveSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool RemoveSite(string SiteName, int CompanyID) {
            object[] results = this.Invoke("RemoveSite", new object[] {
                        SiteName,
                        CompanyID});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void RemoveSiteAsync(string SiteName, int CompanyID) {
            this.RemoveSiteAsync(SiteName, CompanyID, null);
        }
        
        /// <remarks/>
        public void RemoveSiteAsync(string SiteName, int CompanyID, object userState) {
            if ((this.RemoveSiteOperationCompleted == null)) {
                this.RemoveSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveSiteOperationCompleted);
            }
            this.InvokeAsync("RemoveSite", new object[] {
                        SiteName,
                        CompanyID}, this.RemoveSiteOperationCompleted, userState);
        }
        
        private void OnRemoveSiteOperationCompleted(object arg) {
            if ((this.RemoveSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RemoveSiteCompleted(this, new RemoveSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetCurrentSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetCurrentSite(int StaffID, int SiteID) {
            object[] results = this.Invoke("SetCurrentSite", new object[] {
                        StaffID,
                        SiteID});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetCurrentSiteAsync(int StaffID, int SiteID) {
            this.SetCurrentSiteAsync(StaffID, SiteID, null);
        }
        
        /// <remarks/>
        public void SetCurrentSiteAsync(int StaffID, int SiteID, object userState) {
            if ((this.SetCurrentSiteOperationCompleted == null)) {
                this.SetCurrentSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetCurrentSiteOperationCompleted);
            }
            this.InvokeAsync("SetCurrentSite", new object[] {
                        StaffID,
                        SiteID}, this.SetCurrentSiteOperationCompleted, userState);
        }
        
        private void OnSetCurrentSiteOperationCompleted(object arg) {
            if ((this.SetCurrentSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetCurrentSiteCompleted(this, new SetCurrentSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddStaff", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddStaff(string FirstName, string LastName, int SiteID) {
            object[] results = this.Invoke("AddStaff", new object[] {
                        FirstName,
                        LastName,
                        SiteID});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddStaffAsync(string FirstName, string LastName, int SiteID) {
            this.AddStaffAsync(FirstName, LastName, SiteID, null);
        }
        
        /// <remarks/>
        public void AddStaffAsync(string FirstName, string LastName, int SiteID, object userState) {
            if ((this.AddStaffOperationCompleted == null)) {
                this.AddStaffOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddStaffOperationCompleted);
            }
            this.InvokeAsync("AddStaff", new object[] {
                        FirstName,
                        LastName,
                        SiteID}, this.AddStaffOperationCompleted, userState);
        }
        
        private void OnAddStaffOperationCompleted(object arg) {
            if ((this.AddStaffCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddStaffCompleted(this, new AddStaffCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddStaffWithLogin", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddStaffWithLogin(string username, string password, string email, string role, string FirstName, string LastName, int SiteID) {
            object[] results = this.Invoke("AddStaffWithLogin", new object[] {
                        username,
                        password,
                        email,
                        role,
                        FirstName,
                        LastName,
                        SiteID});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void AddStaffWithLoginAsync(string username, string password, string email, string role, string FirstName, string LastName, int SiteID) {
            this.AddStaffWithLoginAsync(username, password, email, role, FirstName, LastName, SiteID, null);
        }
        
        /// <remarks/>
        public void AddStaffWithLoginAsync(string username, string password, string email, string role, string FirstName, string LastName, int SiteID, object userState) {
            if ((this.AddStaffWithLoginOperationCompleted == null)) {
                this.AddStaffWithLoginOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddStaffWithLoginOperationCompleted);
            }
            this.InvokeAsync("AddStaffWithLogin", new object[] {
                        username,
                        password,
                        email,
                        role,
                        FirstName,
                        LastName,
                        SiteID}, this.AddStaffWithLoginOperationCompleted, userState);
        }
        
        private void OnAddStaffWithLoginOperationCompleted(object arg) {
            if ((this.AddStaffWithLoginCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddStaffWithLoginCompleted(this, new AddStaffWithLoginCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetStaffOfCompany", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetStaffOfCompany(int CompanyID) {
            object[] results = this.Invoke("GetStaffOfCompany", new object[] {
                        CompanyID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetStaffOfCompanyAsync(int CompanyID) {
            this.GetStaffOfCompanyAsync(CompanyID, null);
        }
        
        /// <remarks/>
        public void GetStaffOfCompanyAsync(int CompanyID, object userState) {
            if ((this.GetStaffOfCompanyOperationCompleted == null)) {
                this.GetStaffOfCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStaffOfCompanyOperationCompleted);
            }
            this.InvokeAsync("GetStaffOfCompany", new object[] {
                        CompanyID}, this.GetStaffOfCompanyOperationCompleted, userState);
        }
        
        private void OnGetStaffOfCompanyOperationCompleted(object arg) {
            if ((this.GetStaffOfCompanyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetStaffOfCompanyCompleted(this, new GetStaffOfCompanyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetStaffOfSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetStaffOfSite(int SiteID) {
            object[] results = this.Invoke("GetStaffOfSite", new object[] {
                        SiteID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetStaffOfSiteAsync(int SiteID) {
            this.GetStaffOfSiteAsync(SiteID, null);
        }
        
        /// <remarks/>
        public void GetStaffOfSiteAsync(int SiteID, object userState) {
            if ((this.GetStaffOfSiteOperationCompleted == null)) {
                this.GetStaffOfSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStaffOfSiteOperationCompleted);
            }
            this.InvokeAsync("GetStaffOfSite", new object[] {
                        SiteID}, this.GetStaffOfSiteOperationCompleted, userState);
        }
        
        private void OnGetStaffOfSiteOperationCompleted(object arg) {
            if ((this.GetStaffOfSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetStaffOfSiteCompleted(this, new GetStaffOfSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetStaffID", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetStaffID(string FirstName, string LastName) {
            object[] results = this.Invoke("GetStaffID", new object[] {
                        FirstName,
                        LastName});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void GetStaffIDAsync(string FirstName, string LastName) {
            this.GetStaffIDAsync(FirstName, LastName, null);
        }
        
        /// <remarks/>
        public void GetStaffIDAsync(string FirstName, string LastName, object userState) {
            if ((this.GetStaffIDOperationCompleted == null)) {
                this.GetStaffIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStaffIDOperationCompleted);
            }
            this.InvokeAsync("GetStaffID", new object[] {
                        FirstName,
                        LastName}, this.GetStaffIDOperationCompleted, userState);
        }
        
        private void OnGetStaffIDOperationCompleted(object arg) {
            if ((this.GetStaffIDCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetStaffIDCompleted(this, new GetStaffIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SearchStaff", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet SearchStaff(string PartialStaffName) {
            object[] results = this.Invoke("SearchStaff", new object[] {
                        PartialStaffName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void SearchStaffAsync(string PartialStaffName) {
            this.SearchStaffAsync(PartialStaffName, null);
        }
        
        /// <remarks/>
        public void SearchStaffAsync(string PartialStaffName, object userState) {
            if ((this.SearchStaffOperationCompleted == null)) {
                this.SearchStaffOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchStaffOperationCompleted);
            }
            this.InvokeAsync("SearchStaff", new object[] {
                        PartialStaffName}, this.SearchStaffOperationCompleted, userState);
        }
        
        private void OnSearchStaffOperationCompleted(object arg) {
            if ((this.SearchStaffCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SearchStaffCompleted(this, new SearchStaffCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RemoveStaff", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool RemoveStaff(string FirstName, string LastName) {
            object[] results = this.Invoke("RemoveStaff", new object[] {
                        FirstName,
                        LastName});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void RemoveStaffAsync(string FirstName, string LastName) {
            this.RemoveStaffAsync(FirstName, LastName, null);
        }
        
        /// <remarks/>
        public void RemoveStaffAsync(string FirstName, string LastName, object userState) {
            if ((this.RemoveStaffOperationCompleted == null)) {
                this.RemoveStaffOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveStaffOperationCompleted);
            }
            this.InvokeAsync("RemoveStaff", new object[] {
                        FirstName,
                        LastName}, this.RemoveStaffOperationCompleted, userState);
        }
        
        private void OnRemoveStaffOperationCompleted(object arg) {
            if ((this.RemoveStaffCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RemoveStaffCompleted(this, new RemoveStaffCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/AddLogin", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool AddLogin(string Username, string Password, string email, string UserRole, int StaffID) {
            object[] results = this.Invoke("AddLogin", new object[] {
                        Username,
                        Password,
                        email,
                        UserRole,
                        StaffID});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void AddLoginAsync(string Username, string Password, string email, string UserRole, int StaffID) {
            this.AddLoginAsync(Username, Password, email, UserRole, StaffID, null);
        }
        
        /// <remarks/>
        public void AddLoginAsync(string Username, string Password, string email, string UserRole, int StaffID, object userState) {
            if ((this.AddLoginOperationCompleted == null)) {
                this.AddLoginOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddLoginOperationCompleted);
            }
            this.InvokeAsync("AddLogin", new object[] {
                        Username,
                        Password,
                        email,
                        UserRole,
                        StaffID}, this.AddLoginOperationCompleted, userState);
        }
        
        private void OnAddLoginOperationCompleted(object arg) {
            if ((this.AddLoginCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddLoginCompleted(this, new AddLoginCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetLoginsOfCompany", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetLoginsOfCompany(int CompanyID) {
            object[] results = this.Invoke("GetLoginsOfCompany", new object[] {
                        CompanyID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetLoginsOfCompanyAsync(int CompanyID) {
            this.GetLoginsOfCompanyAsync(CompanyID, null);
        }
        
        /// <remarks/>
        public void GetLoginsOfCompanyAsync(int CompanyID, object userState) {
            if ((this.GetLoginsOfCompanyOperationCompleted == null)) {
                this.GetLoginsOfCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLoginsOfCompanyOperationCompleted);
            }
            this.InvokeAsync("GetLoginsOfCompany", new object[] {
                        CompanyID}, this.GetLoginsOfCompanyOperationCompleted, userState);
        }
        
        private void OnGetLoginsOfCompanyOperationCompleted(object arg) {
            if ((this.GetLoginsOfCompanyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetLoginsOfCompanyCompleted(this, new GetLoginsOfCompanyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetLoginsOfSite", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetLoginsOfSite(int SiteID) {
            object[] results = this.Invoke("GetLoginsOfSite", new object[] {
                        SiteID});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void GetLoginsOfSiteAsync(int SiteID) {
            this.GetLoginsOfSiteAsync(SiteID, null);
        }
        
        /// <remarks/>
        public void GetLoginsOfSiteAsync(int SiteID, object userState) {
            if ((this.GetLoginsOfSiteOperationCompleted == null)) {
                this.GetLoginsOfSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLoginsOfSiteOperationCompleted);
            }
            this.InvokeAsync("GetLoginsOfSite", new object[] {
                        SiteID}, this.GetLoginsOfSiteOperationCompleted, userState);
        }
        
        private void OnGetLoginsOfSiteOperationCompleted(object arg) {
            if ((this.GetLoginsOfSiteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetLoginsOfSiteCompleted(this, new GetLoginsOfSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SearchLogins", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet SearchLogins(string PartialLoginName) {
            object[] results = this.Invoke("SearchLogins", new object[] {
                        PartialLoginName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public void SearchLoginsAsync(string PartialLoginName) {
            this.SearchLoginsAsync(PartialLoginName, null);
        }
        
        /// <remarks/>
        public void SearchLoginsAsync(string PartialLoginName, object userState) {
            if ((this.SearchLoginsOperationCompleted == null)) {
                this.SearchLoginsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchLoginsOperationCompleted);
            }
            this.InvokeAsync("SearchLogins", new object[] {
                        PartialLoginName}, this.SearchLoginsOperationCompleted, userState);
        }
        
        private void OnSearchLoginsOperationCompleted(object arg) {
            if ((this.SearchLoginsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SearchLoginsCompleted(this, new SearchLoginsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RemoveLogin", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool RemoveLogin(string Username) {
            object[] results = this.Invoke("RemoveLogin", new object[] {
                        Username});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void RemoveLoginAsync(string Username) {
            this.RemoveLoginAsync(Username, null);
        }
        
        /// <remarks/>
        public void RemoveLoginAsync(string Username, object userState) {
            if ((this.RemoveLoginOperationCompleted == null)) {
                this.RemoveLoginOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveLoginOperationCompleted);
            }
            this.InvokeAsync("RemoveLogin", new object[] {
                        Username}, this.RemoveLoginOperationCompleted, userState);
        }
        
        private void OnRemoveLoginOperationCompleted(object arg) {
            if ((this.RemoveLoginCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RemoveLoginCompleted(this, new RemoveLoginCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetPassword", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetPassword(string Username, string OldPassword, string NewPassword) {
            object[] results = this.Invoke("SetPassword", new object[] {
                        Username,
                        OldPassword,
                        NewPassword});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetPasswordAsync(string Username, string OldPassword, string NewPassword) {
            this.SetPasswordAsync(Username, OldPassword, NewPassword, null);
        }
        
        /// <remarks/>
        public void SetPasswordAsync(string Username, string OldPassword, string NewPassword, object userState) {
            if ((this.SetPasswordOperationCompleted == null)) {
                this.SetPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPasswordOperationCompleted);
            }
            this.InvokeAsync("SetPassword", new object[] {
                        Username,
                        OldPassword,
                        NewPassword}, this.SetPasswordOperationCompleted, userState);
        }
        
        private void OnSetPasswordOperationCompleted(object arg) {
            if ((this.SetPasswordCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetPasswordCompleted(this, new SetPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/SetUserRole", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SetUserRole(string Username, string UserRole) {
            object[] results = this.Invoke("SetUserRole", new object[] {
                        Username,
                        UserRole});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SetUserRoleAsync(string Username, string UserRole) {
            this.SetUserRoleAsync(Username, UserRole, null);
        }
        
        /// <remarks/>
        public void SetUserRoleAsync(string Username, string UserRole, object userState) {
            if ((this.SetUserRoleOperationCompleted == null)) {
                this.SetUserRoleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserRoleOperationCompleted);
            }
            this.InvokeAsync("SetUserRole", new object[] {
                        Username,
                        UserRole}, this.SetUserRoleOperationCompleted, userState);
        }
        
        private void OnSetUserRoleOperationCompleted(object arg) {
            if ((this.SetUserRoleCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetUserRoleCompleted(this, new SetUserRoleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetDeviceSetID", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetDeviceSetID(string Username) {
            object[] results = this.Invoke("GetDeviceSetID", new object[] {
                        Username});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void GetDeviceSetIDAsync(string Username) {
            this.GetDeviceSetIDAsync(Username, null);
        }
        
        /// <remarks/>
        public void GetDeviceSetIDAsync(string Username, object userState) {
            if ((this.GetDeviceSetIDOperationCompleted == null)) {
                this.GetDeviceSetIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDeviceSetIDOperationCompleted);
            }
            this.InvokeAsync("GetDeviceSetID", new object[] {
                        Username}, this.GetDeviceSetIDOperationCompleted, userState);
        }
        
        private void OnGetDeviceSetIDOperationCompleted(object arg) {
            if ((this.GetDeviceSetIDCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetDeviceSetIDCompleted(this, new GetDeviceSetIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetDeviceSets", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetDeviceSets(string Username) {
            object[] results = this.Invoke("GetDeviceSets", new object[] {
                        Username});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetDeviceSetsAsync(string Username) {
            this.GetDeviceSetsAsync(Username, null);
        }
        
        /// <remarks/>
        public void GetDeviceSetsAsync(string Username, object userState) {
            if ((this.GetDeviceSetsOperationCompleted == null)) {
                this.GetDeviceSetsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDeviceSetsOperationCompleted);
            }
            this.InvokeAsync("GetDeviceSets", new object[] {
                        Username}, this.GetDeviceSetsOperationCompleted, userState);
        }
        
        private void OnGetDeviceSetsOperationCompleted(object arg) {
            if ((this.GetDeviceSetsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetDeviceSetsCompleted(this, new GetDeviceSetsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetMyDeviceSetID", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int GetMyDeviceSetID() {
            object[] results = this.Invoke("GetMyDeviceSetID", new object[0]);
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void GetMyDeviceSetIDAsync() {
            this.GetMyDeviceSetIDAsync(null);
        }
        
        /// <remarks/>
        public void GetMyDeviceSetIDAsync(object userState) {
            if ((this.GetMyDeviceSetIDOperationCompleted == null)) {
                this.GetMyDeviceSetIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMyDeviceSetIDOperationCompleted);
            }
            this.InvokeAsync("GetMyDeviceSetID", new object[0], this.GetMyDeviceSetIDOperationCompleted, userState);
        }
        
        private void OnGetMyDeviceSetIDOperationCompleted(object arg) {
            if ((this.GetMyDeviceSetIDCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetMyDeviceSetIDCompleted(this, new GetMyDeviceSetIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetMyDeviceSets", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetMyDeviceSets() {
            object[] results = this.Invoke("GetMyDeviceSets", new object[0]);
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetMyDeviceSetsAsync() {
            this.GetMyDeviceSetsAsync(null);
        }
        
        /// <remarks/>
        public void GetMyDeviceSetsAsync(object userState) {
            if ((this.GetMyDeviceSetsOperationCompleted == null)) {
                this.GetMyDeviceSetsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMyDeviceSetsOperationCompleted);
            }
            this.InvokeAsync("GetMyDeviceSets", new object[0], this.GetMyDeviceSetsOperationCompleted, userState);
        }
        
        private void OnGetMyDeviceSetsOperationCompleted(object arg) {
            if ((this.GetMyDeviceSetsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetMyDeviceSetsCompleted(this, new GetMyDeviceSetsCompletedEventArgs(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.1433")]
    public delegate void AddCompanyWithDetailsCompletedEventHandler(object sender, AddCompanyWithDetailsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddCompanyWithDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddCompanyWithDetailsCompletedEventArgs(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.1433")]
    public delegate void CopyCompanyToBillingCompletedEventHandler(object sender, CopyCompanyToBillingCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CopyCompanyToBillingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CopyCompanyToBillingCompletedEventArgs(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.1433")]
    public delegate void GetBillingDetailsCompletedEventHandler(object sender, GetBillingDetailsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetBillingDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetBillingDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void JSGetBillingDetailsCompletedEventHandler(object sender, JSGetBillingDetailsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class JSGetBillingDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal JSGetBillingDetailsCompletedEventArgs(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.1433")]
    public delegate void AddCompanyCompletedEventHandler(object sender, AddCompanyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddCompanyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddCompanyCompletedEventArgs(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.1433")]
    public delegate void GetCompanyCompletedEventHandler(object sender, GetCompanyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetCompanyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetCompanyCompletedEventArgs(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.1433")]
    public delegate void GetCompaniesCompletedEventHandler(object sender, GetCompaniesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetCompaniesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetCompaniesCompletedEventArgs(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.1433")]
    public delegate void JSGetCompaniesCompletedEventHandler(object sender, JSGetCompaniesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class JSGetCompaniesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal JSGetCompaniesCompletedEventArgs(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.1433")]
    public delegate void SearchCompaniesCompletedEventHandler(object sender, SearchCompaniesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SearchCompaniesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SearchCompaniesCompletedEventArgs(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.1433")]
    public delegate void RemoveCompanyCompletedEventHandler(object sender, RemoveCompanyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RemoveCompanyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RemoveCompanyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddSiteCompletedEventHandler(object sender, AddSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddSiteCompletedEventArgs(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.1433")]
    public delegate void CreateSiteCompletedEventHandler(object sender, CreateSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreateSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreateSiteCompletedEventArgs(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.1433")]
    public delegate void LinkSiteToDeviceSetCompletedEventHandler(object sender, LinkSiteToDeviceSetCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LinkSiteToDeviceSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal LinkSiteToDeviceSetCompletedEventArgs(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.1433")]
    public delegate void GetDeviceSetOfSiteCompletedEventHandler(object sender, GetDeviceSetOfSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetDeviceSetOfSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetDeviceSetOfSiteCompletedEventArgs(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.1433")]
    public delegate void GetSitesCompletedEventHandler(object sender, GetSitesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetSitesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetSitesCompletedEventArgs(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.1433")]
    public delegate void SearchSitesCompletedEventHandler(object sender, SearchSitesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SearchSitesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SearchSitesCompletedEventArgs(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.1433")]
    public delegate void RemoveSiteCompletedEventHandler(object sender, RemoveSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RemoveSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RemoveSiteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetCurrentSiteCompletedEventHandler(object sender, SetCurrentSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetCurrentSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetCurrentSiteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddStaffCompletedEventHandler(object sender, AddStaffCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddStaffCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddStaffCompletedEventArgs(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.1433")]
    public delegate void AddStaffWithLoginCompletedEventHandler(object sender, AddStaffWithLoginCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddStaffWithLoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddStaffWithLoginCompletedEventArgs(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.1433")]
    public delegate void GetStaffOfCompanyCompletedEventHandler(object sender, GetStaffOfCompanyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetStaffOfCompanyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetStaffOfCompanyCompletedEventArgs(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.1433")]
    public delegate void GetStaffOfSiteCompletedEventHandler(object sender, GetStaffOfSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetStaffOfSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetStaffOfSiteCompletedEventArgs(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.1433")]
    public delegate void GetStaffIDCompletedEventHandler(object sender, GetStaffIDCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetStaffIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetStaffIDCompletedEventArgs(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.1433")]
    public delegate void SearchStaffCompletedEventHandler(object sender, SearchStaffCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SearchStaffCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SearchStaffCompletedEventArgs(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.1433")]
    public delegate void RemoveStaffCompletedEventHandler(object sender, RemoveStaffCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RemoveStaffCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RemoveStaffCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void AddLoginCompletedEventHandler(object sender, AddLoginCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddLoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddLoginCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetLoginsOfCompanyCompletedEventHandler(object sender, GetLoginsOfCompanyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetLoginsOfCompanyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetLoginsOfCompanyCompletedEventArgs(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.1433")]
    public delegate void GetLoginsOfSiteCompletedEventHandler(object sender, GetLoginsOfSiteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetLoginsOfSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetLoginsOfSiteCompletedEventArgs(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.1433")]
    public delegate void SearchLoginsCompletedEventHandler(object sender, SearchLoginsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SearchLoginsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SearchLoginsCompletedEventArgs(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.1433")]
    public delegate void RemoveLoginCompletedEventHandler(object sender, RemoveLoginCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RemoveLoginCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RemoveLoginCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetPasswordCompletedEventHandler(object sender, SetPasswordCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void SetUserRoleCompletedEventHandler(object sender, SetUserRoleCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetUserRoleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetUserRoleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetDeviceSetIDCompletedEventHandler(object sender, GetDeviceSetIDCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetDeviceSetIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetDeviceSetIDCompletedEventArgs(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.1433")]
    public delegate void GetDeviceSetsCompletedEventHandler(object sender, GetDeviceSetsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetDeviceSetsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetDeviceSetsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetMyDeviceSetIDCompletedEventHandler(object sender, GetMyDeviceSetIDCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetMyDeviceSetIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetMyDeviceSetIDCompletedEventArgs(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.1433")]
    public delegate void GetMyDeviceSetsCompletedEventHandler(object sender, GetMyDeviceSetsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetMyDeviceSetsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetMyDeviceSetsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591