/// <summary>
        /// Generates record rows with given count
        /// </summary>
        /// <param name="count">generates row count</param>
        /// <returns>generated row records</returns>
        public ObservableCollection <DealerInfo> GetDealerDetails(int count)
        {
            ObservableCollection <DealerInfo> dealerDetails = new ObservableCollection <DealerInfo>();
            var assembly = Assembly.GetAssembly(this.GetType());

            this.SetShipCity();
            this.shippedDate = this.GetDateBetween(2001, 2016, count);
            for (int i = 1; i <= count; i++)
            {
                var shipcountry  = this.shipCountry[this.random.Next(5)];
                var shipcitycoll = this.ShipCity[shipcountry];
                var ord          = new DealerInfo()
                {
                    ProductID    = 1100 + i,
                    ProductNo    = this.productNo[this.random.Next(15)],
                    DealerName   = (i % 2 == 0) ? this.CustomersMale[this.random.Next(15)] : this.CustomersFemale[this.random.Next(14)],
                    ProductPrice = this.random.Next(2000, 10000),
                    IsOnline     = (i % this.random.Next(1, 10) > 2) ? true : false,
                    DealerImage  = (i % 2 == 0) ? this.ImageMale[this.random.Next(7)] : this.ImageFemale[this.random.Next(15)],
                    ShippedDate  = this.shippedDate[i - 1],
                    ShipCountry  = shipcountry,
                    ShipCity     = shipcitycoll[this.random.Next(shipcitycoll.Length - 1)],
                };
                dealerDetails.Add(ord);
            }

            return(dealerDetails);
        }
        /// <summary>
        /// Generates record rows with given count
        /// </summary>
        /// <param name="count">generates row count</param>
        /// <returns>generated row records</returns>
        public ObservableCollection <DealerInfo> GetDealerDetails(int count)
        {
            ObservableCollection <DealerInfo> dealerDetails = new ObservableCollection <DealerInfo>();
            var assembly = Assembly.GetAssembly(this.GetType());

            this.shippedDate = this.GetDateBetween(2001, 2016, count);
            for (int i = 1; i <= count; i++)
            {
                var ord = new DealerInfo()
                {
                    ProductID    = 1100 + i,
                    ProductNo    = this.productNo[this.random.Next(15)],
                    DealerName   = this.Customers[this.random.Next(15)],
                    ProductPrice = this.random.Next(2000, 10000),
                    IsOnline     = (i % this.random.Next(1, 10) > 2) ? true : false,
#if COMMONSB
                    DealerImage = ImageSource.FromResource("SampleBrowser.Icons.DataGrid.Image" + (i % 10) + ".png", assembly),
#else
                    DealerImage = ImageSource.FromResource("SampleBrowser.SfDataGrid.Icons.DataGrid.Image" + (i % 10) + ".png", assembly),
#endif
                    ShippedDate = this.shippedDate[i - 1],
                };
                dealerDetails.Add(ord);
            }

            return(dealerDetails);
        }