/// <summary> /// Send exercises to client, depending on selected exam. /// </summary> /// <param name="client"></param> /// <param name="filename"></param> private static void SendExercisesToClient(TcpClient client, object data) { _server.SetExamFileName(client, (string)data); _log.AppendToLog("Sending exercises to client: " + ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString(), LogType.Info); _csv = new CsvImport(_exampath); var ex = _csv.GetExercises((string)data); _server.SendPacket(client, ex); }