Commit Graph

888 Commits

Author SHA1 Message Date
Tim Young 892aa401cb Add a power-on enum 2018-05-17 16:12:58 -05:00
Tim Young 136b7b1ab7 Add NB.DoActions functions for Replace, ReplaceUPS, and PowerOff 2018-05-17 16:10:20 -05:00
Tim Young 291f1d0b1c Add enums for replace, replaceUPS, and poweroff 2018-05-17 16:08:09 -05:00
Tim Young 98607f42a1 Add a few more solved replays 2018-05-16 14:18:22 -05:00
Tim Young 408022714d Mark freshly-loaded ReplayActions as not being dirty 2018-05-16 14:18:07 -05:00
Tim Young c199065efd Message to store Replays if in replay mode and we solved a puzzle 2018-05-16 09:35:19 -05:00
Tim Young 2df6c5c2f8 Get loading and saving of devices in Actions working. Lots of things needed to be "public" so reflection works. 2018-05-16 09:14:18 -05:00
Tim Young eab20232ca Get the basic replay fie to load when we hold the ctrl key and press the "file" menu item. 2018-05-15 08:27:41 -05:00
Tim Young dbc2ff139f Add the first replay file. 2018-05-15 07:34:52 -05:00
Tim Young a36c29029a Minor fix to allow serialization of network link and network device 2018-05-15 07:23:00 -05:00
Tim Young d5340507fa Arp uses action 2018-05-14 15:14:46 -05:00
Tim Young 074d6c22c5 change device ( action) when edited. 2018-05-14 15:13:53 -05:00
Tim Young 13557c743f do all dhcp as action 2018-05-14 15:10:56 -05:00
Tim Young bc1c994bbd DHCP as action 2018-05-14 15:09:19 -05:00
Tim Young 3ba3023ef0 Changed links get done in action 2018-05-14 15:05:29 -05:00
Tim Young 1d917fd097 Get power on/off to work through Actions. 2018-05-14 14:14:15 -05:00
Tim Young 871f4132fe Change an existing component in an action 2018-05-14 13:47:55 -05:00
Tim Young 617c5e2dc3 Get network links to use Actions 2018-05-14 11:06:19 -05:00
Tim Young 8b82150bbe Adding devices is part of Actions 2018-05-14 10:41:52 -05:00
Tim Young a445ce5bd3 Delete Link Action 2018-05-14 08:16:47 -05:00
Tim Young 76b87b0d18 Get Action list to save 2018-05-14 08:05:56 -05:00
Tim Young 048d461894 StoreReplay 2018-05-11 10:57:54 -05:00
Tim Young 41a6fbe8b0 clean up useless code 2018-05-11 10:54:21 -05:00
Tim Young 14337fdc06 Hide menu items for actions when needed 2018-05-11 10:53:39 -05:00
Tim Young f68e3138f4 Track if the action collection needs to be saved. 2018-05-11 10:47:31 -05:00
Tim Young 44b26812ed Track whether action changes have been stored in long-term memory. 2018-05-11 10:43:48 -05:00
Tim Young 98ed29a45e Add some menu items 2018-05-11 10:36:09 -05:00
Tim Young de5a3c353e Hide various things based on whether we can do Replays, and if we have anything to replay 2018-05-09 16:24:37 -05:00
Tim Young 0ac9fea3bb Add a ReplayMode bool on our settings. It is set to true for now, but when we are closer to deployment, we will set it to false unless specific things are met. 2018-05-09 16:15:37 -05:00
Tim Young e7856a9d3e Get replay working from dropdown menu. (right now everyone has the replay button. We will hide it for most cases later on) 2018-05-09 10:49:54 -05:00
Tim Young d5a04c9d77 Do delete device using DoActions 2018-05-07 10:37:27 -05:00
Tim Young 06ca7c59f3 Arp and clearArp as doactions 2018-05-07 09:43:50 -05:00
Tim Young 8e0fdd9105 Get traceroute using ActionClass 2018-05-04 13:00:44 -05:00
Tim Young b3f4733248 Change "Ping" to an action 2018-05-04 12:55:05 -05:00
Tim Young 2890c25083 Get multi-device drag to use ActionClass 2018-05-04 12:08:56 -05:00
Tim Young 90788964c9 Get dragging of one item to work through the ActionClass 2018-05-04 12:03:06 -05:00
Tim Young 51087c1119 Have a move location action 2018-05-04 06:35:01 -05:00
Tim Young 2efca90da1 register network with ActionCollection when loaded 2018-05-03 12:58:54 -05:00
Tim Young 3d335d32c4 Making progress on initial functions 2018-05-03 11:18:33 -05:00
Tim Young f6264d9098 Start of a system for regression testing. 2018-05-03 10:58:53 -05:00
Tim Young d045738205 Better processing of wireless link autojoin 2018-05-02 12:47:01 -05:00
Tim Young b94114da4b publish & update release numbers for next release 2018-04-10 09:15:12 +03:00
Tim Young a21c35aca6 Keep some things from being drug outside the buildings 2018-04-10 09:10:45 +03:00
Tim Young aa24aba3a9 remove all the wireless connections on network load. They will be rebuilt. 2018-04-10 09:03:29 +03:00
Tim Young eb2dfde694 Get Level5 Practice 4 in the right spot 2018-04-10 09:03:06 +03:00
Tim Young 35da7f65b3 remove a debug writeline. 2018-04-10 08:33:33 +03:00
Tim Young 071c873656 Update release notes 2018-04-09 19:35:55 +03:00
Tim Young 11eec48969 Solve some issues with multiple saved wireless links. They ended up connecting to the wrong devices and making a mess. So, we will start by auto-generating all wireless links. 2018-04-09 18:24:12 +03:00
Tim Young 3bea76f528 Get practice 7 puzzle working with network loop checking. 2018-04-09 17:21:32 +03:00
Tim Young c609571f39 Get network loop tracking working. 2018-04-09 17:17:40 +03:00
Tim Young a96634faef Fix minor puzzle issues. 2018-04-09 16:27:30 +03:00
Tim Young 43ac72e489 Add some tests to the puzzle. We had left it with no tests. 2018-04-09 15:50:02 +03:00
Tim Young e239a1873d Fix Wireless repeater issue. 2018-04-09 15:46:09 +03:00
Tim Young 3847a90f70 Working towards fixing an issue with the WAP. Save it in a working state. 2018-04-09 15:16:56 +03:00
Tim Young 0c2e6b064f Fix some puzzle issues 2018-04-09 14:26:01 +03:00
Tim Young 6537986b27 Once the switch has been replaced (with a spraying nic) the replace switch context menu does not show up. 2018-04-05 16:43:55 +03:00
Tim Young 7707ddc0e1 Let it work if the nic has been replaced 2018-04-05 16:40:42 +03:00
Tim Young 88ec8a6cf5 A little better spraying of the network. 2018-04-05 09:27:47 +03:00
Tim Young 421a6b1a59 trigger multiple spray packets even after the packet is done. 2018-04-04 16:42:32 +03:00
Tim Young 501c08c181 bad packets are not logged. 2018-04-04 16:19:51 +03:00
Tim Young 1e4c8b3273 Network card makes error packet if going out the broken nic 2018-04-04 13:04:31 +03:00
Tim Young 18a8e6e3a1 Generate a bad packet when coming in on a bad nic 2018-04-04 12:57:58 +03:00
Tim Young 0a13df1446 Make device.BadPacketFromHere func 2018-04-03 16:27:34 +03:00
Tim Young dae607bbae make an enum for a bad packet 2018-04-03 16:17:17 +03:00
Tim Young d8a5a8169c Mark the nic spray fixed once the nic has been re-added. They should still add a test to make sure the IP has been put back, etc. Also fixed an issue with duplicate nic names. 2018-03-24 09:34:06 -05:00
Tim Young 10ef0a426f We can replace a switch if it has a bad nic. 2018-03-24 09:04:37 -05:00
Tim Young 762ff62a32 We can state that a network card (switch port) has a problem. We cannot do anything about it yet. 2018-03-24 08:29:09 -05:00
Tim Young ade6ed04ce Update release notes 2018-03-24 08:06:45 -05:00
Tim Young b5d2df4c20 Update the level1 practice5. It had been a puzzle with two DHCP servers. We teach that concept for the first time on level5. So I removed that and replaced it with improper DHCP. It passes out IPs that already exist. 2018-03-21 14:00:00 -05:00
Tim Young b048058962 Update release notes 2018-03-19 13:45:29 -05:00
Tim Young 1e0fad5b4d Add two more "solved" networks. Can be used for random puzzles 2018-03-19 13:43:32 -05:00
Tim Young f8edf09a79 Wireless practice puzzles. Lots of physical wiring issues, wireless, etc. More for troubleshooting practice. 2018-03-19 13:38:00 -05:00
Tim Young e5792f869f Change the damage taken by trees. We can brush up against one and still make it through. But trees still give lots of damage... 2018-03-19 13:37:20 -05:00
Tim Young 6583bc86bb Adding a few puzzles. Level1. Practice 1-7. 2018-03-19 11:55:28 -05:00
Tim Young 3de3d9b111 update release notes 2018-03-19 11:22:17 -05:00
Tim Young cfcab94c64 Hide file-> load toolstrip menu after a load. It kept it open for some reason. 2018-03-19 11:20:34 -05:00
Tim Young 6f223ca1e0 update release notes 2018-03-18 15:08:47 -05:00
Tim Young 383fdb9553 Fix a traversal class not serializable error. 2018-03-18 15:07:49 -05:00
Tim Young 6d73465385 Up the version number for next development cycle 2018-03-17 12:18:21 -05:00
Tim Young fd777e56b3 Get ctrl-y working - redo. 2018-03-17 12:07:51 -05:00
Tim Young c705ac0db3 Always store the state when a button clicked. This does a much better getting ctrl-z to work. 2018-03-17 11:59:11 -05:00
Tim Young e1060523ab Get network equals func working & plug it into networkbuilder 2018-03-17 09:38:15 -05:00
Tim Young b4db7cf99c equals func on net links 2018-03-16 16:27:27 -05:00
Tim Young 9fd7c6a119 Equals func on network devices 2018-03-16 16:23:41 -05:00
Tim Young ae04d818be Firewall Rule Equals func 2018-03-16 16:19:36 -05:00
Tim Young 0a189ec949 make a virtual Equals func on components. Will need to make custom ones for a link and a device 2018-03-16 15:55:30 -05:00
Tim Young 990920b48f Interfaces Equals operator and updating the networkCard equals operator to use the interfaces operator. 2018-03-16 14:35:12 -05:00
Tim Young 485a57382b VlanName Equals Func 2018-03-16 14:22:54 -05:00
Tim Young c07bc41d5a VlanInfo Equals func 2018-03-16 14:20:38 -05:00
Tim Young ff81afba45 Network card "Equals" function (started) 2018-03-16 14:17:57 -05:00
Tim Young 40ee554e95 Equals func for NetShape 2018-03-16 14:01:44 -05:00
Tim Young ee75c73e29 Add an Equals func for LanguageString 2018-03-16 13:59:14 -05:00
Tim Young 5d366ea2cf Add Equals func for NB_IPaddress 2018-03-16 13:57:10 -05:00
Tim Young 565ab9489d initial ctrl-z working 2018-03-15 17:12:20 -05:00
Tim Young d40d9aee58 ctrl-z stub 2018-03-15 16:22:12 -05:00
Tim Young 6593a172fd Add a deep-clone func to the network. We will end up using this for adding ctrl-z functionality. 2018-03-15 16:12:00 -05:00
Tim Young 8d1ba61b89 Add some of the start of the IP address code that will be used for IPv6 2018-03-15 16:03:32 -05:00
Tim Young f3df4f525a Rename IPAddress class to NB_IPAddress. We will be using the System.Net.IPAddress class and do not want to have a conflict. 2018-03-09 15:47:33 -06:00
Tim Young 0368d6d0f9 Lock some items in their location in old puzzles. Packet corruption, wireless corruption, wireless repeater, etc. Update release notes for this. 2018-03-07 15:33:26 -06:00
Tim Young d72ccee22f Increase chance of damage when traversing long links. 2018-03-07 13:51:29 -06:00
Tim Young 2713d6156b Locked Location does not make a success ding at load. 2018-03-06 15:45:59 -06:00
Tim Young 38fd6705e4 devices can be locked to a region. They can be moved around somewhat, but only within a named shape. You can still lock a device so it cannot be moved around at all. 2018-03-06 15:38:47 -06:00
Tim Young 79304fae25 NetTestEditor lets us lock to a rectangle shape defined on the network. 2018-03-06 15:25:24 -06:00
Tim Young ef658c4a58 Keep things from being dropped off the map 2018-03-06 14:50:11 -06:00
Tim Young efa99fc719 Network returns all the rectangle shapes on the map. For use on the net-test editor 2018-03-06 14:37:37 -06:00
Tim Young bd300d9c10 Shape editor has name. & put named shapes into line of sight puzzle 2018-03-06 14:34:29 -06:00
Tim Young 690369ae9c Add a name to the NetShape class. 2018-03-06 14:20:37 -06:00
Tim Young 05477cf9c4 update release notes 2018-03-06 14:18:17 -06:00
Tim Young 124c347751 Add LineOfSight puzzle 2018-03-06 14:15:52 -06:00
Tim Young 18200217f3 Fix spelling of Grey 2018-03-05 17:06:01 -06:00
Tim Young cd0b1c4bdc Items locked for movement have a light circle drawn around them so that it is a little more obvious that there is something different about them. 2018-03-02 11:03:03 -06:00
Tim Young 56b680e057 Finish locking items in location. Can no longer move them if they are locked. 2018-03-01 17:25:07 -06:00
Tim Young 1ada144423 Add a lock location test. Not active yet, but can be added to a network 2018-03-01 17:13:34 -06:00
Tim Young f4b07f1d9d Edit the selected item (select it on the list when the ShapeEdit window is opened) 2018-03-01 13:00:54 -06:00
Tim Young 90843eec0d Some data validation 2018-03-01 12:58:47 -06:00
Tim Young 279fc9b0f3 Get move up / move down working for shape editor 2018-03-01 12:50:30 -06:00
Tim Young 40b8798cbd Languify components for ShapeEditor 2018-03-01 12:37:23 -06:00
Tim Young 1b3291fcfa make context menu visible 2018-03-01 12:31:15 -06:00
Tim Young 5d373a5e95 Better behavior when resizing shape window 2018-03-01 12:29:54 -06:00
Tim Young 6d8553e750 Add edit to NetworkBuilder context menu for shapes 2018-03-01 12:19:17 -06:00
Tim Young 0d4dff5e17 start of context menu 2018-03-01 12:15:53 -06:00
Tim Young 05519891db Fill shape from form 2018-03-01 08:18:20 -06:00
Tim Young 1a83ff7ce1 if nothing selected, clear out values 2018-03-01 08:11:09 -06:00
Tim Young ce6e40e099 Add the shape of the netshape to the form (circle, rectangle) 2018-03-01 08:09:40 -06:00
Tim Young 69814ad21e Starting to add the initial shapelist edit window 2018-02-28 16:50:50 -06:00
Tim Young 9f2974cf6b Able to right-click and delete shapes 2018-02-28 12:18:04 -06:00
Tim Young e3fe80ea42 Draw an X in the center of images when we are in shape mode. We will right-click this center to delete or edit the shape. 2018-02-28 12:03:08 -06:00
Tim Young 4531e0526a Able to resize existing shapes 2018-02-28 10:14:23 -06:00
Tim Young 46bf7acee0 Make a func on the net shape to find the corner opposite from where we clicked 2018-02-28 09:16:01 -06:00
Tim Young 8187cc7a34 Starting values of colors is "Empty" 2018-02-27 16:22:59 -06:00
Tim Young a06f27a836 Allow empty colors, but if both are empty, do not use them. 2018-02-27 16:21:57 -06:00
Tim Young 1d1290c3c2 Able to add a new shape. Cannot edit existing shapes yet... 2018-02-27 16:03:29 -06:00
Tim Young 4f3f260c48 tooltips for Color Combo-boxes 2018-02-27 13:06:14 -06:00
Tim Young 3ff8f1488c Clicking the shape button toggles which shape you are adding. 2018-02-27 09:16:42 -06:00
Tim Young c75f1407f9 Move the dragsize out so we can use it elsewhere. 2018-02-27 07:27:36 -06:00
Tim Young cb3a29b4ea Toggle viewing of drag areas on shapes when shape selector is pressed. 2018-02-27 07:25:32 -06:00
Tim Young d6a2a62c9b Add color choosing boxes for Line and Fill colors for use when adding a shape. 2018-02-26 18:07:56 -06:00
Tim Young 483951f022 Change how we do filled stuff. And add ability to add drag marks on the corners when in shape edit mode 2018-02-26 17:50:48 -06:00
Tim Young 552c949a11 Add a button to toggle the shape-editing mode 2018-02-26 16:30:51 -06:00
Tim Young 1825f2badf Add the image for the shapes button 2018-02-26 16:26:28 -06:00
Tim Young 4f59f3c3a6 Network shapes load, save, and print properly 2018-02-24 17:43:45 -06:00
Tim Young 3b0bb6358f network loads and saves NetShapes 2018-02-24 17:30:13 -06:00
Tim Young e9fe9095b6 make a NetShape class for drawing simple shapes on networks. For making a background look like a map or something. 2018-02-24 17:26:07 -06:00
Tim Young 1453aa27be Trees drop packets very fast 2018-02-24 13:56:26 -06:00
Tim Young 529c967876 No title for trees. They just block things 2018-02-24 13:45:29 -06:00
Tim Young 68d83fa07d trees are not part of the network tests and other such things. 2018-02-24 13:42:03 -06:00
Tim Young a41aee0dc4 Cannot place a tree on top of a tree 2018-02-23 20:28:02 -06:00
Tim Young ef54588253 Cannot drag a tree 2018-02-23 18:27:50 -06:00
Tim Young dc11048262 Cannot edit a tree 2018-02-23 18:00:18 -06:00
Tim Young 204051e29f 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. 2018-02-22 17:28:22 -06:00