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:
parent
3cd5230c8e
commit
204051e29f
@ -413,6 +413,7 @@
|
||||
</FileAssociation>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\tree.png" />
|
||||
<None Include="Resources\WAP.png" />
|
||||
<None Include="Resources\tablet.png" />
|
||||
<None Include="Resources\Server.png" />
|
||||
|
@ -34,7 +34,7 @@ namespace EduNetworkBuilder
|
||||
dhcp_answer, vpn_packet, tun_packet, tracert_request, tracert_reply }
|
||||
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 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 }
|
||||
public enum NicType { none, lo, eth, wlan, wan, vpn, tun, management_interface, port, wport }
|
||||
public enum IPAddressType { ip, gw, route, ip_only }
|
||||
|
@ -403,6 +403,7 @@ namespace EduNetworkBuilder
|
||||
BuildButton("btnWRepeater", Properties.Resources.WRepeater, NB.Translate("NB_BuildBtnRepeat"));
|
||||
BuildButton("btnCellphone", Properties.Resources.cellphone, NB.Translate("NB_BuildBtnCell"));
|
||||
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("btnSelect", Properties.Resources.select, NB.Translate("NB_BuildBtnSelect"));
|
||||
}
|
||||
@ -1485,6 +1486,9 @@ namespace EduNetworkBuilder
|
||||
case "btnWRepeater":
|
||||
NC = myNetwork.AddItem(NetworkComponentType.wrepeater, CenteredLocation);
|
||||
break;
|
||||
case "btnTree":
|
||||
NC = myNetwork.AddItem(NetworkComponentType.tree, CenteredLocation);
|
||||
break;
|
||||
|
||||
}
|
||||
if (NC != null && NB.GetComponentType(NC) == GeneralComponentType.device)
|
||||
|
@ -654,6 +654,9 @@ namespace EduNetworkBuilder
|
||||
case NetworkComponentType.tablet:
|
||||
MyImage = Properties.Resources.tablet;
|
||||
break;
|
||||
case NetworkComponentType.tree:
|
||||
MyImage = Properties.Resources.tree;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
10
EduNetworkBuilder/Properties/Resources.Designer.cs
generated
10
EduNetworkBuilder/Properties/Resources.Designer.cs
generated
@ -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>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
|
@ -505,4 +505,7 @@
|
||||
<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>
|
||||
</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>
|
@ -2029,4 +2029,8 @@
|
||||
<value>Translate</value>
|
||||
<comment>TW_Translate = Translate</comment>
|
||||
</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>
|
BIN
EduNetworkBuilder/Resources/tree.png
Normal file
BIN
EduNetworkBuilder/Resources/tree.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
Loading…
Reference in New Issue
Block a user