Ejemplo n.º 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;
         return _Book;
     }
     else return null;
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
 /// <remarks/>
 public void DeleteBooksAsync(Book[] list) {
     this.DeleteBooksAsync(list, null);
 }
Ejemplo n.º 4
0
 public void DeleteBooks(Book[] list) {
     this.Invoke("DeleteBooks", new object[] {
                 list});
 }
Ejemplo n.º 5
0
 /// <remarks/>
 public void DeleteBookAsync(Book book) {
     this.DeleteBookAsync(book, null);
 }
Ejemplo n.º 6
0
 public void DeleteBook(Book book) {
     this.Invoke("DeleteBook", new object[] {
                 book});
 }
Ejemplo n.º 7
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);
 }
Ejemplo n.º 8
0
 /// <remarks/>
 public void UpdateBookAsync(int id, Book newBook) {
     this.UpdateBookAsync(id, newBook, null);
 }
Ejemplo n.º 9
0
 public void UpdateBook(int id, Book newBook) {
     this.Invoke("UpdateBook", new object[] {
                 id,
                 newBook});
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 11
0
 /// <remarks/>
 public void InsertBookAsync(Book book) {
     this.InsertBookAsync(book, null);
 }
Ejemplo n.º 12
0
 public void InsertBook(Book book) {
     this.Invoke("InsertBook", new object[] {
                 book});
 }