Add a tree object. It is something that will block wireless signals. Trees will be annoying because we cannot move them. We have to work around them.

This commit is contained in:
Tim Young 2018-02-22 17:28:22 -06:00
parent 3cd5230c8e
commit 204051e29f
8 changed files with 27 additions and 2 deletions

View File

@ -413,6 +413,7 @@
</FileAssociation> </FileAssociation>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Resources\tree.png" />
<None Include="Resources\WAP.png" /> <None Include="Resources\WAP.png" />
<None Include="Resources\tablet.png" /> <None Include="Resources\tablet.png" />
<None Include="Resources\Server.png" /> <None Include="Resources\Server.png" />

View File

@ -34,7 +34,7 @@ namespace EduNetworkBuilder
dhcp_answer, vpn_packet, tun_packet, tracert_request, tracert_reply } dhcp_answer, vpn_packet, tun_packet, tracert_request, tracert_reply }
public enum ResponseToPacket { none, accept, masq, drop, reject } public enum ResponseToPacket { none, accept, masq, drop, reject }
public enum DebugLevel { none=0, info=1, routing=2, switching=4, natting=8, filtering=16, debug=32 , packet=64, all=127} public enum DebugLevel { none=0, info=1, routing=2, switching=4, natting=8, filtering=16, debug=32 , packet=64, all=127}
public enum NetworkComponentType { none, router, net_switch, net_hub, laptop, pc, server, wap , public enum NetworkComponentType { none, router, net_switch, net_hub, laptop, pc, server, wap , tree,
wrouter, wbridge, wrepeater, link, firewall, ip_phone, printer, copier, microwave, fluorescent, cellphone, tablet } wrouter, wbridge, wrepeater, link, firewall, ip_phone, printer, copier, microwave, fluorescent, cellphone, tablet }
public enum NicType { none, lo, eth, wlan, wan, vpn, tun, management_interface, port, wport } public enum NicType { none, lo, eth, wlan, wan, vpn, tun, management_interface, port, wport }
public enum IPAddressType { ip, gw, route, ip_only } public enum IPAddressType { ip, gw, route, ip_only }

View File

@ -403,6 +403,7 @@ namespace EduNetworkBuilder
BuildButton("btnWRepeater", Properties.Resources.WRepeater, NB.Translate("NB_BuildBtnRepeat")); BuildButton("btnWRepeater", Properties.Resources.WRepeater, NB.Translate("NB_BuildBtnRepeat"));
BuildButton("btnCellphone", Properties.Resources.cellphone, NB.Translate("NB_BuildBtnCell")); BuildButton("btnCellphone", Properties.Resources.cellphone, NB.Translate("NB_BuildBtnCell"));
BuildButton("btnTablet", Properties.Resources.tablet, NB.Translate("NB_BuildBtnTablet")); BuildButton("btnTablet", Properties.Resources.tablet, NB.Translate("NB_BuildBtnTablet"));
BuildButton("btnTree", Properties.Resources.tree, NB.Translate("NB_BuildBtnTree"));
BuildButton("btnLink", Properties.Resources.link, NB.Translate("NB_BuildBtnCable")); BuildButton("btnLink", Properties.Resources.link, NB.Translate("NB_BuildBtnCable"));
BuildButton("btnSelect", Properties.Resources.select, NB.Translate("NB_BuildBtnSelect")); BuildButton("btnSelect", Properties.Resources.select, NB.Translate("NB_BuildBtnSelect"));
} }
@ -1485,9 +1486,12 @@ namespace EduNetworkBuilder
case "btnWRepeater": case "btnWRepeater":
NC = myNetwork.AddItem(NetworkComponentType.wrepeater, CenteredLocation); NC = myNetwork.AddItem(NetworkComponentType.wrepeater, CenteredLocation);
break; break;
case "btnTree":
NC = myNetwork.AddItem(NetworkComponentType.tree, CenteredLocation);
break;
} }
if(NC != null && NB.GetComponentType(NC) == GeneralComponentType.device) if (NC != null && NB.GetComponentType(NC) == GeneralComponentType.device)
{ {
ItemClickedOn = (NetworkDevice)NC; ItemClickedOn = (NetworkDevice)NC;
} }

View File

@ -654,6 +654,9 @@ namespace EduNetworkBuilder
case NetworkComponentType.tablet: case NetworkComponentType.tablet:
MyImage = Properties.Resources.tablet; MyImage = Properties.Resources.tablet;
break; break;
case NetworkComponentType.tree:
MyImage = Properties.Resources.tree;
break;
} }
} }

View File

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

View File

@ -505,4 +505,7 @@
<data name="Level0_Frozen" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Level0_Frozen" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Level0_Frozen.enbx;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>..\Resources\Level0_Frozen.enbx;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data> </data>
<data name="tree" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\tree.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

View File

@ -2029,4 +2029,8 @@
<value>Translate</value> <value>Translate</value>
<comment>TW_Translate = Translate</comment> <comment>TW_Translate = Translate</comment>
</data> </data>
<data name="NB_BuildBtnTree" xml:space="preserve">
<value>Add a tree to the network to block wireless signals</value>
<comment>NB_BuildBtnTree = Add a tree to the network to block wireless signals</comment>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB