Fix some duplication when things added.

This commit is contained in:
Tim Young 2018-10-11 14:44:18 -05:00
parent d0fcba7854
commit b623ebd9ec

View File

@ -1709,7 +1709,7 @@ namespace EduNetworkBuilder
NCType = NetworkComponentType.server; NCType = NetworkComponentType.server;
break; break;
case "btnPC": case "btnPC":
NC = myNetwork.AddItem(NetworkComponentType.pc, CenteredLocation); //NC = myNetwork.AddItem(NetworkComponentType.pc, CenteredLocation);
NCType = NetworkComponentType.pc; NCType = NetworkComponentType.pc;
break; break;
case "btnRouter": case "btnRouter":
@ -1725,7 +1725,7 @@ namespace EduNetworkBuilder
NCType = NetworkComponentType.firewall; NCType = NetworkComponentType.firewall;
break; break;
case "btnPrinter": case "btnPrinter":
NC = myNetwork.AddItem(NetworkComponentType.printer, CenteredLocation); //NC = myNetwork.AddItem(NetworkComponentType.printer, CenteredLocation);
NCType = NetworkComponentType.printer; NCType = NetworkComponentType.printer;
break; break;
case "btnCopier": case "btnCopier":
@ -1733,7 +1733,7 @@ namespace EduNetworkBuilder
NCType = NetworkComponentType.copier; NCType = NetworkComponentType.copier;
break; break;
case "btnMicrowave": case "btnMicrowave":
NC = myNetwork.AddItem(NetworkComponentType.microwave, CenteredLocation); //NC = myNetwork.AddItem(NetworkComponentType.microwave, CenteredLocation);
NCType = NetworkComponentType.microwave; NCType = NetworkComponentType.microwave;
break; break;
case "btnFluorescent": case "btnFluorescent":