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

@ -96,17 +96,17 @@ namespace EduNetworkBuilder
return false;
}
public bool Edit(NetworkDevice FromWhat, string message="")
public bool Edit(NetworkDevice FromWhat, Form ParentForm, string message="")
{
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat);
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat, ParentForm);
if (message != "")
IPe.Text = message;
return IPe.Edit();
}
public bool Edit(NetworkDevice FromWhat, IPAddress DHCPif)
public bool Edit(NetworkDevice FromWhat, IPAddress DHCPif, Form ParentForm)
{
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat);
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat, ParentForm);
return IPe.Edit(FromWhat, DHCPif);
}