When we check net-tests, we can pass in the network. This allows us to use this func if we do not have a network loaded.
This commit is contained in:
parent
02e3b45cb2
commit
98fae3192f
@ -440,9 +440,10 @@ namespace EduNetworkBuilder
|
|||||||
/// See if the test has been solved
|
/// See if the test has been solved
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool TestComplete()
|
public bool TestComplete(Network UseThisNet = null)
|
||||||
{
|
{
|
||||||
Network theNet = NB.GetNetwork();
|
Network theNet = UseThisNet;
|
||||||
|
if(theNet == null) theNet= NB.GetNetwork();
|
||||||
NetworkDevice Source = theNet.GetDeviceFromName(sHost);
|
NetworkDevice Source = theNet.GetDeviceFromName(sHost);
|
||||||
NetworkDevice Dest = theNet.GetDeviceFromName(dHost);
|
NetworkDevice Dest = theNet.GetDeviceFromName(dHost);
|
||||||
IPAddress gw;
|
IPAddress gw;
|
||||||
|
Loading…
Reference in New Issue
Block a user