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();