/// <summary>
        /// Show median price on the window.
        /// </summary>
        /// <param name="cata"></param>
        private void ShowMedianPrice(ProductCatalogue cata)
        {
            if (cata == null)
            {
                return;
            }
            string medPerCata    = cata.GetMedianPrice().ToString();
            string medAcrossCata = this.GetMedianPriceAcrossCatalogues().ToString();

            TboxCatalogueMedian.Text = medPerCata;
            TboxAllMedian.Text       = medAcrossCata;
        }
        /// <summary>
        /// Get median price across all catalogues.
        /// </summary>
        /// <returns></returns>
        private double GetMedianPriceAcrossCatalogues()
        {
            if (catalogueList == null || catalogueList.Count == 0)
            {
                return(0);
            }

            ProductCatalogue cataAll = new ProductCatalogue(AppResources.NAME_CALC_MEDIAN_CATA_LIST_NAME, Categories.Unknown);

            foreach (ProductCatalogue cata in catalogueList)
            {
                cataAll.ProductList.AddRange(cata.ProductList);
            }
            return(cataAll.GetMedianPrice());
        }