public TimesheetConfirmationViewModel(TimesheetTemplateViewModel timesheet)
        {
            Timesheet = timesheet;
            #region Add Timesheet entry view models to their collections
            foreach (TimesheetEntryViewModel entry in Timesheet.MondayEntries)
            {
                MondayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }

            foreach (TimesheetEntryViewModel entry in Timesheet.TuesdayEntries)
            {
                TuesdayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }

            foreach (TimesheetEntryViewModel entry in Timesheet.WednesdayEntries)
            {
                WednesdayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }

            foreach (TimesheetEntryViewModel entry in Timesheet.ThursdayEntries)
            {
                ThursdayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }

            foreach (TimesheetEntryViewModel entry in Timesheet.FridayEntries)
            {
                FridayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }

            foreach (TimesheetEntryViewModel entry in Timesheet.SaturdayEntries)
            {
                SaturdayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }

            foreach (TimesheetEntryViewModel entry in Timesheet.SundayEntries)
            {
                SundayEntries.Add(new TimesheetEntryConfirmationViewModel(entry.TimesheetEntry, this));
            }
            #endregion
            PageTitle   = "Bekræft Timeseddel - " + timesheet.EmployeeName;
            WeekBox     = timesheet.Timesheet.WeekNumber.ToString();
            YearBox     = timesheet.Timesheet.Year.ToString();
            SalaryIDBox = timesheet.Timesheet.EmployeeID.ToString();

            //Calls the sum event that updates the sum of all the visma entries.
            SumVismaEntries();
        }
 public void BtnSaturdayAddEntry()
 {
     SaturdayEntries.Add(new TimesheetEntryViewModel(this));
 }