private void AddBook()
        {
            Book           book   = new Book();
            SqlConnections access = new SqlConnections();

            book.Title    = titletxt.Text;
            book.Author   = authortxt.Text;
            book.ISBN     = isbntxt.Text;
            book.Year     = yeartxt.Text;
            book.Quantity = int.Parse(quantitytxt.Text);
            book          = access.AddBook(book);
            DisplayData(searchtxt.text.Trim());
            MetroFramework.MetroMessageBox.Show(this, "Successfully added");
            this.Refresh();
        }