コード例 #1
0
        //BINDING THE LIST VIEW AND MENU ITEMS
        public ApartmentViewModel()
        {
            services = new ApartmentServices();
            list     = services.GetApartmentList();

            MenuItems = new ObservableCollection <MenuModel>(new[]
            {
                new MenuModel {
                    Id = 0, Title = "Page 1", TargetType = typeof(en.View.Page1)
                },
                new MenuModel {
                    Id = 0, Title = "Page 2", TargetType = typeof(en.View.Page2)
                },
            });
        }
コード例 #2
0
 public ApartmentController()
 {
     apartmentServices = new ApartmentServices();
 }