private async Task SearchByTag()
        {
            string tag = tagTextbox.Text;

            if (String.IsNullOrEmpty(tag))
            {
                MessageBox.Show("Tag jest pusty!", "Uwaga", MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }

            var product = await ProductsManager.GetProductByTag(tag);

            if (product == null)
            {
                MessageBox.Show("Nie znaleziono produktu", "Uwaga", MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }

            DetailsWindow detailsWindow = new DetailsWindow(product);

            detailsWindow.ShowDialog();
        }
        private async Task SearchByModelNumber()
        {
            string modelNumber = modelNumberTextbox.Text;

            if (String.IsNullOrEmpty(modelNumber))
            {
                MessageBox.Show("Numer modelu jest pusty!", "Uwaga", MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }

            var product = await ProductsManager.GetProductByNumber(modelNumber);

            if (product == null)
            {
                MessageBox.Show("Nie znaleziono produktu", "Uwaga", MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }

            DetailsWindow detailsWindow = new DetailsWindow(product);

            detailsWindow.ShowDialog();
        }
        private static void ShowProductFromRow(Product product)
        {
            DetailsWindow detailsWindow = new DetailsWindow(product);

            detailsWindow.Show();
        }