Esempio n. 1
0
        public override void OnViewAppearing()
        {
            base.OnViewAppearing();
            var dataConsumer = new DataConsumer();
            var carList      = dataConsumer.GetCarList();

            foreach (var item  in carList)
            {
                ItemCars.Add(item);
            }
        }
Esempio n. 2
0
 private void AddAction()
 {
     if (!IsBusy)
     {
         IsBusy = true;
         var item = new CarItem
         {
             Brand = Brand,
             Line  = Line,
             Year  = Year
         };
         //var checkItem = ItemCars.FirstOrDefault(x => x == item);
         //if
         ItemCars.Add(item);
         IsBusy = false;
     }
 }