Tim Young
06eb896558
The problem is seen in the first puzzle if you ping pc0, and then edit the 0.0.0.0 gateway. It auto-fills in the last-used pc0 IP address, and canceling saves that change instead of leaving the gateway at 0.0.0.0. lastIP nicely saves some typing (although it has also confused my student quite a bit I think), but since it updates WhatToEdit, that becomes the "saved" value even during a cancel. Instead, save the original value as a copy, and set back to the original value when cancellng. Perhaps it would be worth creating a reparse( NB_IPAddress) function, but this was easy to just hack together. Tested by pinging pc0, then editing the gateway and cancellng, editing the IP address and canceling. Next: don't add a canceled route |
||
---|---|---|
.. | ||
Properties | ||
Resources | ||
ActionClass.cs | ||
add2cfiles.txt | ||
add2edustrings.txt | ||
AnimationClass.cs | ||
App.config | ||
DeviceConfig.cs | ||
DeviceConfig.Designer.cs | ||
DeviceConfig.resx | ||
EduNetworkBuilder_TemporaryKey.pfx | ||
EduNetworkBuilder.csproj | ||
FirewallEditor.cs | ||
FirewallEditor.Designer.cs | ||
FirewallEditor.resx | ||
img_arp.png | ||
img_dhcp.png | ||
img_ping.png | ||
img_ping.xcf | ||
img_tun.png | ||
img_vpn.png | ||
IPAddress.cs | ||
IPAddressEntry.cs | ||
IPAddressEntry.Designer.cs | ||
IPAddressEntry.resx | ||
LanguageString.cs | ||
LinkEditor.cs | ||
LinkEditor.Designer.cs | ||
LinkEditor.resx | ||
ListBoxWindow.cs | ||
ListBoxWindow.Designer.cs | ||
ListBoxWindow.resx | ||
NB.cs | ||
NBSettings.cs | ||
NetShape.cs | ||
NetTest.cs | ||
NetTestEditor.cs | ||
NetTestEditor.Designer.cs | ||
NetTestEditor.resx | ||
Network.cs | ||
NetworkBuilder.cs | ||
NetworkBuilder.Designer.cs | ||
NetworkBuilder.resx | ||
NetworkCard.cs | ||
NetworkCardEditor.cs | ||
NetworkCardEditor.Designer.cs | ||
NetworkCardEditor.resx | ||
NetworkComponent.cs | ||
NetworkDevice.cs | ||
NetworkInterface.cs | ||
NetworkLink.cs | ||
OptionsWindow.cs | ||
OptionsWindow.Designer.cs | ||
OptionsWindow.resx | ||
Packet.cs | ||
PacketMessage.cs | ||
PersonClass.cs | ||
PersonProfileForm.cs | ||
PersonProfileForm.Designer.cs | ||
PersonProfileForm.resx | ||
Program.cs | ||
pullLanguageInfo.pl | ||
RandomPuzzleChooser.cs | ||
RandomPuzzleChooser.Designer.cs | ||
RandomPuzzleChooser.resx | ||
RTFWindow.cs | ||
RTFWindow.Designer.cs | ||
RTFWindow.resx | ||
SchoolworkClass.cs | ||
ShapeEditor.cs | ||
ShapeEditor.Designer.cs | ||
ShapeEditor.resx | ||
Thumbs.db | ||
toedit.txt | ||
TranslationWindow.cs | ||
TranslationWindow.Designer.cs | ||
TranslationWindow.resx | ||
TraversalClass.cs | ||
TrippleDESDocumentEncryption.cs | ||
VLANConfig.cs | ||
VLANConfig.Designer.cs | ||
VLANConfig.resx | ||
VLANStuff.cs |