public Vacation(DateTime _startDate, DateTime _endDate, ref HolidayManager _holidays) { startDate = (_startDate < _endDate) ? (_startDate) : (_endDate); endDate = (_startDate < _endDate) ? (_endDate) : (_startDate); RecalcDuration(); IsDateDefined = true; holidayManager = _holidays; }
public Employee(string _name, DateTime _hireDate, EmploymentType _type, bool _fired, DateTime _birth, string _mobile, ref HolidayManager _holidays) { name = _name; hireDate = _hireDate; accountType = _type; fired = _fired; birthDate = _birth; mobilePhone = _mobile; vacationList = new List <Vacation>(); holidayManager = _holidays; calculator = new DaysCalculator(this); }
public Vacation(Vacation copy) { if (copy.IsDateDefined) { startDate = copy.startDate; endDate = copy.endDate; } duration = copy.duration; IsDateDefined = copy.IsDateDefined; holidayManager = copy.holidayManager; RecalcDuration(); }
public EmployeeManager(ref HolidayManager _holidayManager) { Employees = new Dictionary <int, Employee>(40); holidayManager = _holidayManager; }
public Vacation(int DurationInDays, ref HolidayManager _holidays) { duration = new TimeSpan(DurationInDays, 0, 0, 0); IsDateDefined = false; holidayManager = _holidays; }