示例#1
0
        internal Modifier(string name, string table)
        {
            this.name  = name;
            this.table = table;

            ModifyProtocol       = CreateModifyProtocol();
            ModifyProtocol.Name  = name;
            ModifyProtocol.Table = table;
        }
        internal Modifier(string name, string table)
        {
            this.name = name;
            this.table = table;

            ModifyProtocol = CreateModifyProtocol();
            ModifyProtocol.Name = name;
            ModifyProtocol.Table = table;
        }
        public Protocol.ModifierResultProtocol[] Update()
        {
            Protocol.ModifierProtocol[] protocolMods =  new Protocol.ModifierProtocol[modifications.Count];

            for(int i=0;i<modifications.Count;i++)
            {
                Modifier modifyItem = ((Modifier)modifications[i]);
                modifyItem.PrepareProtocalForTransport();

                protocolMods[i] = modifyItem.ModifyProtocol;
            }

            return this.clarifyDataAccessWS.Update( protocolMods );
        }
        public Protocol.ModifierResultProtocol[] Update()
        {
            Protocol.ModifierProtocol[] protocolMods = new Protocol.ModifierProtocol[modifications.Count];

            for (int i = 0; i < modifications.Count; i++)
            {
                Modifier modifyItem = ((Modifier)modifications[i]);
                modifyItem.PrepareProtocalForTransport();

                protocolMods[i] = modifyItem.ModifyProtocol;
            }

            return(this.clarifyDataAccessWS.Update(protocolMods));
        }
 /// <remarks/>
 public System.IAsyncResult BeginUpdate(ModifierProtocol[] modificationItems, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("Update", new object[] {
                 modificationItems}, callback, asyncState);
 }
 public ModifierResultProtocol[] Update(ModifierProtocol[] modificationItems)
 {
     object[] results = this.Invoke("Update", new object[] {
                 modificationItems});
     return ((ModifierResultProtocol[])(results[0]));
 }