예제 #1
0
        public BusinessUcVm(UserUcVm userVm)
        {
            _dal          = new DataAccessLayer();
            States        = _dal.GetStates();
            _userVm       = userVm;
            _checkinCheck = new HashSet <string>();

            FilterByMealBoxes = new List <Checkbox> {
                new Checkbox("Breakfast", this, "breakfast"),
                new Checkbox("Brunch", this, "brunch"),
                new Checkbox("Lunch", this, "lunch"),
                new Checkbox("Dinner", this, "dinner"),
                new Checkbox("Dessert", this, "dessert"),
                new Checkbox("Late Night", this, "latenight")
            };
            FilterByAttributeCheckboxes = new List <Checkbox>
            {
                new Checkbox("Accepts Credit Cards", this, "BusinessAcceptsCreditCards"),
                new Checkbox("Takes Reservation", this, "RestaurantsReservations"),
                new Checkbox("Wheelchair Accesible", this, "WheelchairAccessible"),
                new Checkbox("Outdoor Seating", this, "OutdoorSeating"),
                new Checkbox("Good for Kids", this, "GoodForKids"),
                new Checkbox("Good for Groups", this, "RestaurantsGoodForGroups"),
                new Checkbox("Delivery", this, "RestaurantsDelivery"),
                new Checkbox("Take Out", this, "RestaurantsTakeOut"),
                new Checkbox("Free Wifi", this, "WiFi"),
                new Checkbox("Bike Parking", this, "BikeParking")
            };
            FilterByPrice = new List <Checkbox>
            {
                new Checkbox("$", this, "1"),
                new Checkbox("$$", this, "2"),
                new Checkbox("$$$", this, "3"),
                new Checkbox("$$$$", this, "4")
            };
            SortByChoices = new List <string>
            {
                "Business Name", "Business Address", "City", "St", "Distance", "Review Count", "Review Rating",
                "Num Checkins"
            };
            _selectedChoice = _sortyByChoices[0];
            ReviewText      = ReviewText = "Enter Review Text Here!";
        }
예제 #2
0
 public MainWindowVM()
 {
     UserUcVm     = new UserUcVm();
     BusinessUcVm = new BusinessUcVm(UserUcVm);
 }