Class1.cs 760 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ClassLibrary1
  7. {
  8. public class Class1
  9. {
  10. public string[] metod(TimeSpan[] startTimes, int[] durations, TimeSpan beginWorkingTime, TimeSpan endWorkingTime, int consultationTime)
  11. {
  12. double workPeriod = (endWorkingTime - beginWorkingTime).TotalMinutes;
  13. int countPeriod = Convert.ToInt32(Math.Round(workPeriod/ consultationTime));
  14. List<string> listStartPeriod = new List<string>();
  15. string [] metod = new string[countPeriod];
  16. for (int i = 0; i < countPeriod; i++)
  17. {
  18. }
  19. return null;
  20. }
  21. }
  22. }