Пример #1
0
 public PresPg()
 {
     this.InitializeComponent();
     _asalesbagRepo = new DataAccess.Repository.SalesBag_ArtifactRepository();
     _salesbagRepo  = new DataAccess.Repository.SalesBagRepository();
     _meetingRepo   = new DataAccess.Repository.MeetingRepository();
     _artRepo       = new DataAccess.Repository.ArtifactRepository();
     _catRepo       = new DataAccess.Repository.CategoryRepository();
 }
Пример #2
0
        /// The methods provided in this section are simply used to allow
        /// NavigationHelper to respond to the page's navigation methods.
        ///
        /// Page specific logic should be placed in event handlers for the
        /// <see cref="Common.NavigationHelper.LoadState"/>
        /// and <see cref="Common.NavigationHelper.SaveState"/>.
        /// The navigation parameter is available in the LoadState method
        /// in addition to page state preserved during an earlier session.

        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _categoryRepo = new DataAccess.Repository.CategoryRepository();
            _artifactRepo = new DataAccess.Repository.ArtifactRepository();


            var foo = await _categoryRepo.Search("cat");

            navigationHelper.OnNavigatedTo(e);

            await UpdateUi();

            await CheckForNewArtifacts();
        }