Beispiel #1
0
 private static localhost.Book toLocalhostBook(SCL.Book b)
 {
     localhost.Book _Book = new localhost.Book();
     if (b != null)
     {
         _Book.Author = b.Author;
         _Book.Title = b.Title;
         _Book.PhotoPath = b.Author;
         _Book.Photo = b.Photo;
         _Book.Category = b.Category;
         _Book.Date = b.Date;
         _Book.Price = b.Price;
         _Book.Description = b.Description;
         return _Book;
     }
     else return null;
 }
Beispiel #2
0
 /// <remarks/>
 public void DeleteBooksAsync(Book[] list) {
     this.DeleteBooksAsync(list, null);
 }
Beispiel #3
0
 /// <remarks/>
 public void DeleteBooksAsync(Book[] list, object userState) {
     if ((this.DeleteBooksOperationCompleted == null)) {
         this.DeleteBooksOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteBooksOperationCompleted);
     }
     this.InvokeAsync("DeleteBooks", new object[] {
                 list}, this.DeleteBooksOperationCompleted, userState);
 }
Beispiel #4
0
 /// <remarks/>
 public void DeleteBookAsync(Book book) {
     this.DeleteBookAsync(book, null);
 }
Beispiel #5
0
 public void DeleteBooks(Book[] list) {
     this.Invoke("DeleteBooks", new object[] {
                 list});
 }
Beispiel #6
0
 /// <remarks/>
 public void UpdateBookAsync(int id, Book newBook, object userState) {
     if ((this.UpdateBookOperationCompleted == null)) {
         this.UpdateBookOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateBookOperationCompleted);
     }
     this.InvokeAsync("UpdateBook", new object[] {
                 id,
                 newBook}, this.UpdateBookOperationCompleted, userState);
 }
Beispiel #7
0
 public void DeleteBook(Book book) {
     this.Invoke("DeleteBook", new object[] {
                 book});
 }
Beispiel #8
0
 /// <remarks/>
 public void UpdateBookAsync(int id, Book newBook) {
     this.UpdateBookAsync(id, newBook, null);
 }
Beispiel #9
0
 public void UpdateBook(int id, Book newBook) {
     this.Invoke("UpdateBook", new object[] {
                 id,
                 newBook});
 }
Beispiel #10
0
 /// <remarks/>
 public void InsertBookAsync(Book book, object userState) {
     if ((this.InsertBookOperationCompleted == null)) {
         this.InsertBookOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertBookOperationCompleted);
     }
     this.InvokeAsync("InsertBook", new object[] {
                 book}, this.InsertBookOperationCompleted, userState);
 }
Beispiel #11
0
 /// <remarks/>
 public void InsertBookAsync(Book book) {
     this.InsertBookAsync(book, null);
 }
Beispiel #12
0
 public void InsertBook(Book book) {
     this.Invoke("InsertBook", new object[] {
                 book});
 }