public override void OnViewAppearing() { base.OnViewAppearing(); var dataConsumer = new DataConsumer(); var carList = dataConsumer.GetCarList(); foreach (var item in carList) { ItemCars.Add(item); } }
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; } }