示例#1
0
        private static void DeleteCar(int index)
        {
            Console.WriteLine("---------------");
            Console.Write("Are you sure you want to delete this car? (Y/N) ");
            var input = Console.ReadLine().ToUpper();

            if (input == "Y")
            {
                _service.DeleteCar(index);
            }
        }
示例#2
0
 private void DeleteCar(object obj)
 {
     carDataService.DeleteCar(SelectedCar);
     Messenger.Default.Send <UpdateListMessage>(new UpdateListMessage());
 }