private void SearchByNameBtn_Click(object sender, RoutedEventArgs e)// By name
 {
     if (!Checks.IsNotEmptyNullOrWhite(SearchBoxTxt.Text))
     {
         System.Windows.Forms.MessageBox.Show("You need to insert a value");
         return;
     }
     if (!libraryManager.GetObject(0, SearchBoxTxt, InfoTxt, BookTxt, RemoveBtn))
     {
         InfoTxt.Text = "";
         BookTxt.Text = "";
         System.Windows.Forms.MessageBox.Show("Cannot Find Name!", "Error");
     }
     SearchBoxTxt.Text = "";
 }
 // 2 methood's to search the book, name or ISBN
 private void SearchByNameBtn_Click(object sender, RoutedEventArgs e)//by name
 {
     if (!Checks.IsNotEmptyNullOrWhite(SearchBoxTxt.Text))
     {
         System.Windows.Forms.MessageBox.Show("You need to insert a value");
         return;
     }
     // if the input is good, we check if the item valid
     // the type tell me to search the name, 0 = SearchByName;
     if (!libraryManager.GetObject(0, SearchBoxTxt, InfoTxt, BookTxt, RentBtn))
     {
         InfoTxt.Text = "";
         BookTxt.Text = "";
         System.Windows.Forms.MessageBox.Show("Cannot Find Name!", "Error");
     }
     SearchBoxTxt.Text = "";
 }