Esempio n. 1
0
 //For adding the book in the User's Book Shelf
 private void Button_AddBook(object sender, RoutedEventArgs e)
 {
     if (!(String.IsNullOrEmpty(isbnTxt.Text) || String.IsNullOrEmpty(bookTitleTxt.Text) ||
           String.IsNullOrEmpty(authorTxt.Text)))
     {
         dynamoDbOperation.AddBook(username, isbnTxt.Text, bookTitleTxt.Text, authorTxt.Text);
         isbnTxt.Text      = "";
         bookTitleTxt.Text = "";
         authorTxt.Text    = "";
         BooksIntoDataGrid();
     }
     else
     {
         MessageBox.Show("Enter the book information", "Error !!!!");
     }
 }