public opdrachtPage(Page page, Job job = null) { this.previousPage = page; InitializeComponent(); this.selectedItems = new List<JobObject>(); this.dbhandler = singletonDbHandler.getInstance(); this.brandSelection.ItemsSource = this.dbhandler.getBrands(); if (job != null) { this.opdracht = job; this.jobList = new ObservableCollection<JobObject>(this.opdracht.JobObjects); this.jobTasksViewer.ItemsSource = this.jobList; this.setPageElements(); this.updateJobViewer(); } else { this.opdracht = new Job(); this.jobList = new ObservableCollection<JobObject>(this.opdracht.JobObjects); this.jobTasksViewer.ItemsSource = this.jobList; this.opdracht.setPrize(helperFunctions.milieukosten); } this.environmentCosts.Content = helperFunctions.prizeToString(helperFunctions.milieukosten); this.subTotalPrize.Content = helperFunctions.prizeToString(helperFunctions.calculateAmountExcl(this.opdracht.JobObjects)); int totalExcl = helperFunctions.exclVAT(this.opdracht.Amount) + helperFunctions.milieukosten; this.totalExclBtw.Content = helperFunctions.prizeToString(totalExcl); int totalIncl = this.opdracht.Amount + helperFunctions.inclVAT(helperFunctions.milieukosten); this.totalPrizeIncl.Content = helperFunctions.prizeToString(totalIncl); this.btwPrize.Content = helperFunctions.prizeToString(totalIncl - totalExcl); }
public takenListPage(Page page) { this.previousPage = page; this.dbhandler = singletonDbHandler.getInstance(); InitializeComponent(); this.brandSelector.ItemsSource = this.dbhandler.getBrands(); }
public searchJobPage(Page page) { previousPage = page; InitializeComponent(); this.dbHandler = singletonDbHandler.getInstance(); this.dateTo.DisplayDateStart = this.dateFrom.SelectedDate; this.dateFrom.DisplayDateEnd = this.dateTo.SelectedDate; }
public bonViewer(Page page, Job job) { this.previousPage = page; this.job = job; this.dbhandler = singletonDbHandler.getInstance(); InitializeComponent(); string path = "E:\\Docs\\VDIJssel\\WPF-PriceChecker\\PriceCheckerWPF\\bin\\Debug\\internal\\bonnen\\" + job.Id + ".pdf"; Uri uri; Uri.TryCreate(path, UriKind.Absolute, out uri); if (uri != null){ this.bonWebBrowser.Source = uri; } else { throw new IOException("File doesn't exist"); } }
public MainWindow() { this.dbhandler = singletonDbHandler.getInstance(); InitializeComponent(); SetPage(Pages.HomePage); }