IPAddress edit box should now appear inside the network box.

This commit is contained in:
2017-02-25 10:33:56 +03:00
parent 4a5450ac54
commit f4ab85f359
9 changed files with 34 additions and 28 deletions

View File

@@ -385,7 +385,7 @@ namespace EduNetworkBuilder
private void AddRoute()
{
IPAddress newip = new IPAddress(NB.ZeroIPString, NB.ZeroIPString, NB.ZeroIPString);
newip.Edit(myNetDevice,NB.Translate("LBW_AddRouteCreate"));
newip.Edit(myNetDevice, this, NB.Translate("LBW_AddRouteCreate"));
myNetDevice.AddRoute(newip);
UpdateForm();
}
@@ -398,12 +398,12 @@ namespace EduNetworkBuilder
if (lbWindowData.SelectedIndex >= EditableCount) return;
if (lbWindowData.SelectedIndex < 1) return;
//we always subtract 1 since we have added one line of comment to the list
myNetDevice.EditRoute(lbWindowData.SelectedIndex - 1);
myNetDevice.EditRoute(lbWindowData.SelectedIndex - 1, this);
}
if(MyMode == LBContents.dhcp)
{
//We always add one since we are skipping the loopback device
myNetDevice.EditDHCP(lbWindowData.SelectedIndex + 1);
myNetDevice.EditDHCP(lbWindowData.SelectedIndex + 1, this);
}
if (MyMode == LBContents.puzzles)
{