Пример #1
0
        /// <summary>
        /// When the form loads, it will show at the starting
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FormLoad(object sender, EventArgs e)
        {
            CarClass devanshi = new CarClass("Hyundai", "Accent", 2009, 8000, true);
            CarClass car1     = new CarClass("Honda", "Accord", 2017, 5000, false);
            CarClass car2     = new CarClass("Volkswagon", "Beatle", 2000, 9000, true);

            // It will add all the object to the list
            carList.Add(devanshi);
            carList.Add(car1);
            carList.Add(car2);

            PopulateListView(carList);
        }