private void setupUsernameCombobox()
        {
            #if DEBUG
            if (DesignerProperties.GetIsInDesignMode(new DependencyObject()))
            {
                return;
            }
            #endif

            //Loads the usernames from the Service Sheet table
            List <DbEmployee> usernames = DbServiceSheet.getAllUsers();
            if (usernames == null)
            {
                MessageBox.Show("Error loading usernames");
                Employees = null;
                return;
            }
            Employees = new ObservableCollection <DbEmployee>(usernames);
        }
        private Dictionary <DateTime, List <DbEmployee> > createPossibleEngineerDaysCalendar()
        {
            Dictionary <DateTime, List <DbEmployee> > possibleDays = new Dictionary <DateTime, List <DbEmployee> >();

            //Download all the engineers names

            m_engineers = DbServiceSheet.getAllUsers();
            if (m_engineers == null)
            {
                return(null);
            }

            DateTime calendarStart = MonthFirstDay.Date;
            //Use the entre calendar month
            DateTime calendarEnd = calendarStart.AddMonths(1);

            for (DateTime currentDate = calendarStart; currentDate.Date < calendarEnd.Date; currentDate = currentDate.AddDays(1))
            {
                possibleDays.Add(currentDate, new List <DbEmployee>(m_engineers));
            }

            return(possibleDays);
        }