Example #1
0
        private async void Button_Clicked(object sender, EventArgs e)
        {
            Loading.IsVisible = Loading.IsRunning = true;
            var book = Isbn.GetBook(isbn.Text).Result;

            await connect.InsertAsync(book);

            await Navigation.PopAsync();
        }
Example #2
0
 // Getting The Books Details Using ISBN And Filling The Input Boxes
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         Book bk = Isbn.GetBook(isbn.Text).Result;
         title.Text       = bk.Title;
         author.Text      = bk.Author;
         desc.Text        = bk.Description;
         status.Text      = "Available";
         status.ForeColor = Color.Green;
     }
     catch
     {
         status.Text      = "Unavailable";
         status.ForeColor = Color.Red;
     }
 }