示例#1
0
        public PackPage(User user)
        {
            InitializeComponent();
            _user = user;
            var testrepo = new DBRepository();

            dBRepository = testrepo;
            testrepo.LoadData();
            UILogic.AdaptPacksForUser(user, testrepo.Packages);
            PackList.ItemsSource     = testrepo.Packages;
            PointsList.ItemsSource   = UILogic.GetScores(user, testrepo.Packages);
            CheckBoxList.ItemsSource = testrepo.Packages;;
        }