From 32afc5a7f602cdbb3c9effc81eef797cd9a31edd Mon Sep 17 00:00:00 2001 From: Tim Young Date: Wed, 18 Nov 2015 12:12:20 -0500 Subject: [PATCH] Minor changes to strings to make translation easier --- EduNetworkBuilder/Network.cs | 2 +- EduNetworkBuilder/NetworkBuilder.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 9c190e3..4e72189 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -833,7 +833,7 @@ namespace EduNetworkBuilder NB.SetProgress(Duration.TotalSeconds, NumberOfSecondsForTimeout); if (Duration.TotalSeconds > NumberOfSecondsForTimeout) { - Console.WriteLine("Total seconds = " + Duration.TotalSeconds.ToString() + " Stopping."); + Console.WriteLine(string.Format("Total seconds = {0} Stopping.", Duration.TotalSeconds.ToString())); foreach (Packet pkt in myPackets) { pkt.Tracking.AddMessage(DebugLevel.packet, "Network", "The packet timed out."); diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 35a3d0e..48d6d7c 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -437,7 +437,7 @@ namespace EduNetworkBuilder byte[] item = (byte[])myManager.GetObject(str); if(item == null) { - MessageBox.Show("Skipping Invalid Puzzle: '" + str + "'"); + MessageBox.Show(String.Format("Skipping Invalid Puzzle: '{0}'",str)); continue; } myString = new StreamReader(new MemoryStream(item), true).ReadToEnd();