Example #1
0
 /// <remarks/>
 public void UpdateAsync(Goods c, object userState) {
     if ((this.UpdateOperationCompleted == null)) {
         this.UpdateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOperationCompleted);
     }
     this.InvokeAsync("Update", new object[] {
                 c}, this.UpdateOperationCompleted, userState);
 }
Example #2
0
 public int Add(Goods a) {
     object[] results = this.Invoke("Add", new object[] {
                 a});
     return ((int)(results[0]));
 }
Example #3
0
 public string Update(Goods c) {
     object[] results = this.Invoke("Update", new object[] {
                 c});
     return ((string)(results[0]));
 }
Example #4
0
 /// <remarks/>
 public void UpdateAsync(Goods c) {
     this.UpdateAsync(c, null);
 }
Example #5
0
 /// <remarks/>
 public void SearchAsync(Goods c, int page, int pageSize, object userState) {
     if ((this.SearchOperationCompleted == null)) {
         this.SearchOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchOperationCompleted);
     }
     this.InvokeAsync("Search", new object[] {
                 c,
                 page,
                 pageSize}, this.SearchOperationCompleted, userState);
 }
Example #6
0
 /// <remarks/>
 public void SearchAsync(Goods c, int page, int pageSize) {
     this.SearchAsync(c, page, pageSize, null);
 }
Example #7
0
 public Goods[] Search(Goods c, ref int page, int pageSize, out int totalPages) {
     object[] results = this.Invoke("Search", new object[] {
                 c,
                 page,
                 pageSize});
     page = ((int)(results[1]));
     totalPages = ((int)(results[2]));
     return ((Goods[])(results[0]));
 }
Example #8
0
 /// <remarks/>
 public void AddAsync(Goods a, object userState) {
     if ((this.AddOperationCompleted == null)) {
         this.AddOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddOperationCompleted);
     }
     this.InvokeAsync("Add", new object[] {
                 a}, this.AddOperationCompleted, userState);
 }
Example #9
0
 /// <remarks/>
 public void AddAsync(Goods a) {
     this.AddAsync(a, null);
 }