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