public EmployeeDetails(Employee selectedEmployee)
 {
     InitializeComponent();
     _selectedEmployee             = selectedEmployee;
     _employeesRepository          = new EmployeesRepository();
     _projectsRepository           = new ProjectsRepository();
     employeeToStringTextBox.Text  = selectedEmployee.ToString();
     employeeBirthdayTextBox.Text += selectedEmployee.Birthday.ToString("d");
     oibTextBox.Text             += selectedEmployee.Oib;
     weeklyWorkHoursTextBox.Text += _employeesRepository.CountOfWeeklyWorkHours(_selectedEmployee) + @" hours";
     RefreshColorIndicator();
     RefreshProjectsList("All");
     RefreshProjectStateComboBox();
 }
        private void RefreshColorIndicator()
        {
            var weeklyWorkHoursAsInt = _employeesRepository.CountOfWeeklyWorkHours(_selectedEmployee);

            if (weeklyWorkHoursAsInt >= 41)
            {
                weeklyWorkHoursColoredIndicator.BackColor = Color.Red;
            }
            else if (weeklyWorkHoursAsInt > 30)
            {
                weeklyWorkHoursColoredIndicator.BackColor = Color.Green;
            }
            else
            {
                weeklyWorkHoursColoredIndicator.BackColor = Color.Yellow;
            }
        }