Example #1
0
        public AboutViewModel(ShellViewModel _shell)
        {
            this.vmShell = _shell;
            this.DisplayName = Properties.Resources.menu_About;

            if (this.dbRepo == null)
                this.dbRepo = new BombaJobRepository();
        }
        public NewestOffersViewModel()
        {
            this.DisplayName = Properties.Resources.menu_Newest;

            if (this.dbRepo == null)
                this.dbRepo = new BombaJobRepository();
            this.LoadOffers();
        }
        public JobOffersCategoriesViewModel(TabberViewModel _tabm)
        {
            this.tabm = _tabm;
            this.DisplayName = Properties.Resources.menu_Jobs;

            if (this.dbRepo == null)
                this.dbRepo = new BombaJobRepository();
            this.LoadCategories();
        }
        public SendMessageViewModel(TabberViewModel _tabm, JobOffer jo)
        {
            this.tabm = _tabm;
            this.currentOffer = jo;
            this.DisplayName = " | #" + this.currentOffer.OfferID;

            if (this.dbRepo == null)
                this.dbRepo = new BombaJobRepository();
        }
        public SearchResultsViewModel(TabberViewModel _tabm, string sQuery)
        {
            this.tabm = _tabm;
            this.SearchQuery = sQuery;
            this.DisplayName = " | " + Properties.Resources.menu_Search;

            if (this.dbRepo == null)
                this.dbRepo = new BombaJobRepository();

            this.StartSearch();
            if (Properties.Settings.Default.stOnlineSearch)
                this.DoSearch();
            else
                this.SearchOffers();
        }
 private void InitVM()
 {
     if (this.dbRepo == null)
         this.dbRepo = new BombaJobRepository();
 }
Example #7
0
 private void LoadCategories()
 {
     if (this.dbRepo == null)
         this.dbRepo = new BombaJobRepository();
     this.Categories = this.dbRepo.GetCategories();
     NotifyOfPropertyChange(() => Categories);
     if (this.Categories != null && this.Categories.Count > 0)
         this.SelectedCategory = this.Categories[0];
 }