예제 #1
0
        private void GetVehicles_Click(object sender, EventArgs e)
        {
            List <Vehicle> vehicles = VehicleViewModel.GetAllVehicles();

            ListElements.Items.Clear();
            foreach (Vehicle ve in vehicles)
            {
                ListElements.Items.Add(ve);
            }
        }