private void Item_textBlockHover(object sender, TextBlockHoverEventArgs e)
        {
            double SalePrice;

            if (system.SalesCheck(e.Item, out SalePrice))
            {
                isItemOnSale              = true;
                price_txtblock.Text       = $"Special Price: {SalePrice}";
                price_txtblock.Foreground = new SolidColorBrush(Colors.Red);
            }
            else
            {
                price_txtblock.Text       = $"Price: {e.Item.Price}";
                price_txtblock.Foreground = new SolidColorBrush(Colors.Black);
            }
            name_txtblock.Text      = $"Name: {e.Item.Name} ";
            id_txtblock.Text        = $"Id: {e.Item.Id} ";
            genre_txtblock.Text     = $"Genre: {e.Item.Genre}";
            date_txtblock.Text      = $"Date: {e.Item.DateOfPrinting.ToShortDateString()}";
            publisher_txtblock.Text = $"Publisher: {e.Item.Publisher}";
            Book book = e.Item as Book;

            if (book == null)
            {
                Magazine magazine = e.Item as Magazine;
                autherOrEdition_txtblock.Text = $"Edition: {magazine.Edition}";
            }
            else
            {
                autherOrEdition_txtblock.Text = $"Auther: {book.Auther}";
            }
            detail_panel.Visibility = Visibility.Visible;
        }
        private void Item_textBlockTaped(object sender, TextBlockHoverEventArgs e)
        {
            if (isItemOnSale)
            {
                isItemOnSaleSelected = true;
            }
            confermtion_canvas.Visibility = Visibility.Visible;
            itemSelected = e.Item;
            switch (infoFromNavPage.Item3)
            {
            case 1: action = "borrow"; break;

            case 2: action = "edit"; break;

            case 3: action = "remove"; break;

            default: action = ""; break;
            }
            Book book = itemSelected as Book;

            if (book == null)
            {
                confermtion_txtblock.Text = $"are you sure you want to {action} this magazine?";
            }
            else
            {
                confermtion_txtblock.Text = $"are you sure you want to {action} this book?";
            }
        }