Example #1
0
 void setSearchingSettings()
 {
     btnSearchByBookName.Visible  = true;
     btnSearchByWriter.Visible    = true;
     btnSearchByPublisher.Visible = true;
     btnSearchByGenre.Visible     = true;
     TBoxSearchingText.Clear();
 }
Example #2
0
        private void btnExecuteSearch_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(TBoxSearchingText.Text) || TBoxSearchingText.Text == " ")
            {
                MessageBox.Show("Please enter something!");
                TBoxSearchingText.Clear();
            }
            else
            {
                executeSearch();

                btnUpdateBook.Visible = true;
            }
        }