//Създава обект, който изчислява работните дати между две дати. static void CreateWorkingDates(string firstDate, string secondDate) { WorkingDates workingDate = new WorkingDates(firstDate, secondDate); workingDate.DateOne = firstDate; workingDate.DateTwo = secondDate; PrintWorkingDate(workingDate); }
//Принтира броя на работните дати. static void PrintWorkingDate(WorkingDates workinfDate) { workinfDate.CalculateWorkintDates(); }