Firewall Puzzle

This commit is contained in:
Tim Young 2016-11-14 20:13:41 -08:00
parent d38a81c3fe
commit 4edf8ced20
6 changed files with 1386 additions and 11 deletions

View File

@ -255,6 +255,7 @@
<None Include="Resources\Level2_Build_A_VPN.enbx" />
<None Include="Resources\Level2_Connect_The_Dots.enbx" />
<None Include="Resources\Level2_FirewallDemo.enbx" />
<None Include="Resources\Level2_FirewallTest2.enbx" />
<None Include="Resources\Level2_Not_Working.enbx" />
<None Include="Resources\Level2_VPN_Demo.enbx" />
<None Include="Resources\Level2_VPN_woes.enbx" />

View File

@ -25,16 +25,6 @@ namespace EduNetworkBuilder
void UpdateForm()
{
if (lbRules.SelectedIndex >= 0)
{
btnDel.Visible = true;
btnEdit.Visible = true;
}
else
{
btnDel.Visible = false;
btnEdit.Visible = false;
}
int selected = lbRules.SelectedIndex;
lbRules.Items.Clear();
foreach (FirewallRule FW in FirewallDevice.FirewallRules)
@ -49,6 +39,17 @@ namespace EduNetworkBuilder
if (lbRules.Items.Count > 0)
lbRules.SelectedIndex = 0;
}
//Make the buttons visible
if (lbRules.SelectedIndex >= 0)
{
btnDel.Visible = true;
btnEdit.Visible = true;
}
else
{
btnDel.Visible = false;
btnEdit.Visible = false;
}
}
private void btnNew_Click(object sender, EventArgs e)

View File

@ -64,7 +64,7 @@ namespace EduNetworkBuilder
Level1_MidDHCP, Level1_OneNetTwoSubnets, Level1_DuplicateIPs, Level0_NetworkLoop, Level1_DuplicateMAC,
Level2_FirewallDemo, Level1_OneNetTwoSubnets2, Level2_VPN_Demo, Level2_Bad_VPN_IP, Level2_Bad_Encryption,
Level2_Bad_Route, Level2_Blast_From_Past, Level2_Not_Working, Level2_Build_A_VPN, Level2_Connect_The_Dots,
Level2_VPN_woes,
Level2_VPN_woes, Level2_FirewallTest2,
Level3_BlackHole, Level3_Busted, Level3_Middle_Man_Out, Level3_PhoneyNetwork, Level3_VPNify, Level3_EncryptionTroubles,
Level3_NowhereToGo, Level3_GrandCentralStation, Level3_Dead, Level0_NetworkLoop2, Level0_BrokenLink,
Level3_TwoDHCPServers,

View File

@ -472,6 +472,16 @@ namespace EduNetworkBuilder.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] Level2_FirewallTest2 {
get {
object obj = ResourceManager.GetObject("Level2_FirewallTest2", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>

View File

@ -427,4 +427,7 @@
<data name="Level6_TwoAccessPoints" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Level6_TwoAccessPoints.enbx;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="Level2_FirewallTest2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Level2_FirewallTest2.enbx;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

File diff suppressed because it is too large Load Diff