public void AddReport(DateTime date, string name, string position, int time, string comment) { string note = $"{date.ToShortDateString()},{name},{time},{comment}"; switch (position) { case "руководитель": ManagerReport.Add(note); break; case "сотрудник": EmployeeReport.Add(note); break; case "фрилансер": FreelancerReport.Add(note); break; } }