public static void GetUsers() { DataTable dt = GetAllData("Users"); foreach (DataRow dataRow in dt.Rows) { TCP.Send($"R+{dataRow["Email"]}+{dataRow["Password"]}+{dataRow["Name"]}+{dataRow["Surname"]}+{dataRow["Image"]}"); } }
internal static void SendKarts() { KartList.RefreshList(); string message = "K"; foreach (Kart kart in KartList.KList) { if (kart.Available && kart.TransID != string.Empty) { message += $"+{kart.Name}+{kart.TransID}"; } } TCP.Send(message); }