예제 #1
0
        public ActionResult Index()
        {
            ViewBag.Greeting = "Bienvenido";
            PropertiesResume propertiesResume = new PropertiesResume();
            var repository = new PropertyRepository();

            propertiesResume.Properties = repository.GetAll().Take(9).ToList();
            return(View(propertiesResume));
        }
예제 #2
0
        private void GetControlls()
        {
            foreach (var property in _PropertyRepository.GetAll())
            {
                var label = new Label {
                    Text = property.Name
                };

                var input = new Entry();
                //input.SetBinding (Entry.TextProperty, Model.Properties.Where(p => p.Name == property.Name));

                Layout.Children.Add(label);
                Layout.Children.Add(input);
            }
        }
예제 #3
0
 public IEnumerable <Property> Get()
 {
     return(db.GetAll());
 }
예제 #4
0
 protected override void OnAppearing()
 {
     List.ItemsSource = _PropertyRepository.GetAll();
 }