Updated 'toedit'

This commit is contained in:
Tim Young 2015-11-16 15:25:38 -05:00
parent c0dbef7c0d
commit 3521c24263
3 changed files with 4 additions and 603 deletions

View File

@ -327,7 +327,6 @@
</FileAssociation>
</ItemGroup>
<ItemGroup>
<Content Include="Resources\toedit.txt" />
<None Include="Resources\noBeep.wav" />
<None Include="Resources\tablet.png" />
<None Include="Resources\PC.png" />

View File

@ -1,595 +0,0 @@
DeviceConfig.cs: lblHelp.Text = "Select the network card or interface for that network card that you wish to edit. " +
DeviceConfig.cs: "Then press the [edit] button to make changes to that. Press the [-] to remove it, and press [+] to add another.";
DeviceConfig.cs: mytooltips.SetToolTip(tbHostname, "This item is part of the puzzle and cannot be renamed.");
DeviceConfig.cs: if (ClonedItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
DeviceConfig.cs: btnGateway.Text = "Gateway: " + ndCLonedItem.GetGateway().GetIP.ToIpString();
DeviceConfig.cs: lbArpTable.Items.Add("Arp Table MAC\tIPAddress");
DeviceConfig.cs: lbArpTable.Items.Add(ae.MACAddress + "\t" + ae.IPAddr);
DeviceConfig.cs: string selectedNicName = "";
DeviceConfig.cs: selectedNicName = Regex.Replace(selectedNicName, " .*", "");
DeviceConfig.cs: selectedNicName = Regex.Replace(selectedNicName, "\\*", "");
DeviceConfig.cs: MessageBox.Show("The name '" + otext + "' is being used as part of this puzzle and this machine cannot be named that.");
DeviceConfig.cs: if (ClonedItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
DeviceConfig.cs: QuestionForm.Text = "Network Card to Add";
DeviceConfig.cs: lblText.Text = "Choose a type:";
DeviceConfig.cs: btnAccept.Text = "Add";
DeviceConfig.cs: if (ClonedItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
DeviceConfig.cs: MessageBox.Show("You cannot delete the sole remaining interface.");
DeviceConfig.cs: MessageBox.Show("Please select an interface to delete.");
DeviceConfig.cs: if (ClonedItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
DeviceConfig.cs: selectedNIC = Regex.Replace(selectedNIC, " .*", "");
DeviceConfig.cs: selectedNIC = Regex.Replace(selectedNIC, "\\*", "");
IPAddress.cs: writer.WriteElementString("ip", _ip.ToIpString());
IPAddress.cs: writer.WriteElementString("mask", _mask.ToIpString());
IPAddress.cs: writer.WriteElementString("gateway", _gw.ToIpString());
IPAddress.cs: writer.WriteElementString("type", myType.ToString());
IPAddress.cs: public bool Edit(NetworkDevice FromWhat, string message="")
IPAddress.cs: if (message != "")
IPAddress.cs: _mask = "255.255.255.0".ParseIp();
IPAddress.cs: if(mySplitVal[0] == "10")
IPAddress.cs: _mask = "255.0.0.0".ParseIp();
IPAddress.cs: if (mySplitVal[0] == "172")
IPAddress.cs: _mask = "255.255.0.0".ParseIp();
IPAddress.cs: if (mySplitVal[0] == "192")
IPAddress.cs: _mask = "255.255.255.0".ParseIp();
IPAddress.cs: string tstring = "IP:" +PadIt(_ip.ToIpString())+
IPAddress.cs: " Mask:" + PadIt(_mask.ToIpString())+
IPAddress.cs: " GW:" + PadIt(gw);
IPAddress.cs: return String.Join(".", parts);
IPAddressEntry.cs: string hostname = "";
IPAddressEntry.cs: if (!lNM.Contains("255"))
IPAddressEntry.cs: lNM = "255.255.255.0";
IPAddressEntry.cs: lblIP.Text = "Interface";
IPAddressEntry.cs: lblNetmask.Text = "Start";
IPAddressEntry.cs: lblGateway.Text = "End";
IPAddressEntry.cs: MessageBox.Show("The end IP in the range must be within the scope of the interface.");
IPAddressEntry.cs: MessageBox.Show("The end IP must be equal to or larger than the start IP.");
IPAddressEntry.cs: MessageBox.Show("The start IP in the range must be within the scope of the interface.");
LanguageString.cs: public string text="";
LanguageString.cs: public string language="en";
LanguageString.cs: if(Regex.IsMatch(theNode.Name.ToLower(),"^[a-z][a-z]_" + tag))
LanguageString.cs: language = Regex.Replace(theNode.Name.ToLower(), "_" + tag, "");
LanguageString.cs: language = "en";
LanguageString.cs: writer.WriteElementString(language+"_" + tag_type, text);
LanguageString.cs: string tag = "";
LanguageString.cs: if(language != "en")
LanguageString.cs: return GetText("en");
LanguageString.cs: return "";
LinkEditor.cs: string SrcHost="";
LinkEditor.cs: string DstHost="";
LinkEditor.cs: string SrcNic = "";
LinkEditor.cs: string DstNic = "";
LinkEditor.cs: if (SrcNic != "")
LinkEditor.cs: if (DstNic != "")
LinkEditor.cs: if (Regex.IsMatch(SrcNic, "^wport") || Regex.IsMatch(SrcNic, "^wlan"))
ListBoxWindow.cs: lblInstructions.Text = "Filter the puzzles by checking one the boxes.";
ListBoxWindow.cs: if (SelectedTag == "ALL")
ListBoxWindow.cs: Text = Text + "(All Solved)";
ListBoxWindow.cs: if (str == SelectedTag || (SelectedTag == "ALL" && Regex.IsMatch(str,"Level")))
ListBoxWindow.cs: btnOK.Text = "Load";
ListBoxWindow.cs: btnAdd.Text = "Cancel";
ListBoxWindow.cs: lblInstructions.Text = "Double-click a route to change it.";
ListBoxWindow.cs: lbWindowData.Font = new System.Drawing.Font("Courier New", 8);
ListBoxWindow.cs: lblInstructions.Text = "Double-Click the interface to add/edit the range of DHCP to serve.";
ListBoxWindow.cs: lbWindowData.Font = new System.Drawing.Font("Courier New", 8);
ListBoxWindow.cs: lblInstructions.Text = "For greater detail, click on the check-boxes";
ListBoxWindow.cs: newCB.Name = "checkBox" + count.ToString();
ListBoxWindow.cs: return "Level_" + PI.Level;
ListBoxWindow.cs: return "ALL";
ListBoxWindow.cs: string selected = "";
ListBoxWindow.cs: itemstrings.Add("--Static Routes (Read/Write)--");
ListBoxWindow.cs: itemstrings.Add("--Routes from NICs (Read-Only)--");
ListBoxWindow.cs: shown_name = "* " + shown_name;
ListBoxWindow.cs: if(selected != null && selected != "")
ListBoxWindow.cs: TheName = Regex.Replace(TheName, @"^\* ", "");
ListBoxWindow.cs: newip.Edit(myNetDevice,"Create Route");
ListBoxWindow.cs: lbWindowData.ContextMenuStrip.Items.Add("Edit");
ListBoxWindow.cs: lbWindowData.ContextMenuStrip.Items.Add("Delete");
ListBoxWindow.cs: DialogResult answer = MessageBox.Show("Are sure you want to forget what puzzles you have done?", "Forget Puzzles?", MessageBoxButtons.YesNo);
NB.cs: HostName = "";
NB.cs: NicName = "";
NB.cs: writer.WriteElementString("hostid", HostID.ToString());
NB.cs: writer.WriteElementString("nicid", NicID.ToString());
NB.cs: writer.WriteElementString("hostname", HostName);
NB.cs: writer.WriteElementString("nicname", NicName);
NB.cs: get { return HostID.ToString()+"-"+NicID.ToString(); }
NB.cs: PuzzleTags.Add("Level_" + Individual.InnerText);
NB.cs: public static string BroadcastMACString = "FF:FF:FF:FF:FF:FF"; //The broadcast MAC address
NB.cs: public static string BroadcastIPString = "255.255.255.255"; //the generic broadcast IP address
NB.cs: public static string ZeroIPString = "0.0.0.0";
NB.cs: public static string LoopbackIPString = "127.0.0.1";
NB.cs: public static int LinkStep = 8;//The percentage of the link we move at each "tick"
NB.cs: public static string[,] LanguageChoices = { { "English", "en" }, { "French", "fr" } };
NB.cs: myresource = new ResourceManager("EduNetworkBuilder.Resources.languages.edustrings", MyAssembly);
NB.cs: string answer="";
NB.cs: if (answer == null) return "";
NB.cs: return "H_" + What.ToString() + "_Key";
NB.cs: return "H_" + What.ToString() + "_Title";
NB.cs: if (lang == "") lang = "en";
NB.cs: string StartingItem = "";
NB.cs: LanguageForm.Text = "Choose Language";
NB.cs: lblText.Text = "Choose a Language:";
NB.cs: btnAccept.Text = "OK";
NB.cs: if(What.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
NB.cs: if (What.GetType().ToString() == "EduNetworkBuilder.NetworkLink")
NB.cs: if(myfrm.Name == "Context")
NB.cs: tForm.Name = "Context";
NB.cs: sBuilder.Append(number.ToString("X2"));
NB.cs: "Invalid Bit " + BitNumber.ToString() + "! (Should be from 0 to 7)");
NB.cs: "Invalid Bit" + BitNumber.ToString() + "! (Should be from 0 to 7)");
NetTest.cs: public string sHost = "";
NetTest.cs: public string dHost = "";
NetTest.cs: writer.WriteStartElement("nettest");
NetTest.cs: writer.WriteElementString("shost", sHost);
NetTest.cs: writer.WriteElementString("dhost", dHost);
NetTest.cs: writer.WriteElementString("thetest", TheTest.ToString());
NetTest.cs: string toreturn = "";
NetTest.cs: toreturn = "Has a problem";
NetTest.cs: toreturn = "Needs the gateway set";
NetTest.cs:// toreturn = "Cannot ping";
NetTest.cs: toreturn = "Needs a route set";
NetTest.cs: toreturn = "Needs a local IP";
NetTest.cs: toreturn = "Needs to be connected to the network.";
NetTest.cs: toreturn = "Needs to find ARP from some device";
NetTest.cs: toreturn = "Needs a DHCP IP address";
NetTest.cs: toreturn = "Must ping a host.";
NetTest.cs: toreturn = "Get mouse-over help";
NetTest.cs: toreturn = "Should fail to ping a specific host";
NetTest.cs: toreturn = "Needs change to DHCP server:";
NetTest.cs: toreturn = "Is Locked";
NetTest.cs: toreturn = "Has Locked DHCP";
NetTest.cs: toreturn = "Has Locked IP";
NetTest.cs: toreturn = "Has Locked NIC";
NetTest.cs: toreturn = "Has Locked Route";
NetTest.cs: toreturn = "Has Locked Gateway";
NetTest.cs: toreturn = "Needs the gateway set to:";
NetTest.cs:// toreturn = "Cannot ping host:";
NetTest.cs: toreturn = "Needs a route to network:";
NetTest.cs: toreturn = "Needs an IP local to host:";
NetTest.cs: toreturn = "Needs a link to host:";
NetTest.cs: toreturn = "Needs to find ARP from:";
NetTest.cs: toreturn = "Needs a DHCP IP address from server:";
NetTest.cs: toreturn = "Must ping:";
NetTest.cs: toreturn = "Get mouse-over help of level:";
NetTest.cs: toreturn = "Needs to try to ping (and fail):";
NetTest.cs: toreturn = "DHCP Server enabled = ";
NetTest.cs: toreturn = "Is Locked:";
NetTest.cs: toreturn = "Has Locked DHCP:";
NetTest.cs: toreturn = "Has Locked IP:";
NetTest.cs: toreturn = "Has Locked NIC:";
NetTest.cs: toreturn = "Has Locked Route:";
NetTest.cs: toreturn = "Has Locked Gateway:";
NetTest.cs: toreturn = "";
NetTest.cs: string toreturn = "";
NetTest.cs: return TestDescription(amount) + " " + sHost;
NetTest.cs: toreturn = sHost + " " + TestDescription(amount);
NetTest.cs: toreturn = sHost + " " + TestDescription(amount);
NetTest.cs: toreturn = sHost + " " + TestDescription(amount) + " " + dHost;
NetTest.cs: toreturn = "";
NetTest.cs: //The IP address chosen is "local" to the source host. So it should ping between them
NetTest.cs: //dHost is either "true" or "false"
NetTestEditor.cs: cbDest.Items.Add("?Button");
NetTestEditor.cs: theNames.Remove("None");
NetTestEditor.cs: cbDest.Items.Add("Read");
NetTestEditor.cs: cbDest.Items.Add("All");
Network.cs: public string PuzzleName="";
Network.cs: private IPAddress lastAddress = new IPAddress("0.0.0.0/24");
Network.cs: public string NetworkFilename = "";
Network.cs: NetMessage = new LanguageStrings("message");
Network.cs: NetTitle = new LanguageStrings("title");
Network.cs: Load(@"C:\Users\tyoung\Desktop\Test.enbx");
Network.cs: //Tags.Add("Level_" + Individual.InnerText);
Network.cs: if(Regex.IsMatch(Individual.Name.ToLower(),"message"))
Network.cs: if (Regex.IsMatch(Individual.Name.ToLower(), "title"))
Network.cs: if (NetMessage.GetText() != "" && !AlreadyDisplayedMessage)
Network.cs: Save(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Test.enbx"));
Network.cs: writer.WriteStartElement("EduNetworkBuilder");
Network.cs: writer.WriteComment("This is a network file for EduNetworkBuilder.");
Network.cs: writer.WriteStartElement("Network");
Network.cs: writer.WriteElementString("height", myHeight.ToString());
Network.cs: writer.WriteElementString("width", myWidth.ToString());
Network.cs: writer.WriteElementString("itemsize", itemsize.ToString());
Network.cs: writer.WriteElementString("showlabels", ShowLabels.ToString());
Network.cs: writer.WriteElementString("level", Level.ToString());
Network.cs: writer.WriteElementString("sortorder", SortOrder.ToString());
Network.cs: writer.WriteElementString("uniqueidentifier", UniqueIdentifier.ToString());
Network.cs: writer.WriteElementString("startinghelplevel", StartingHelpLevel.ToString());
Network.cs: writer.WriteElementString("tag",HT.ToString());
Network.cs: if (tItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
Network.cs: if (tItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
Network.cs: if(tItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
Network.cs: if(NetComponents[looper].GetType().ToString() == "EduNetworkBuilder.NetworkLink")
Network.cs: if (NC.GetType().ToString() == "EduNetworkBuilder.NetworkLink")
Network.cs: if(tString != "")
Network.cs: if (nt.ColorItemsIfNeeded(HintsToDisplay != NetTestVerbosity.none)) //only change the color if we are not "none"
Network.cs: if (NC.GetType().ToString() == "EduNetworkBuilder.NetworkLink")
Network.cs: if (NC.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
Network.cs: if (PuzzleName != "" && PuzzleName != null)
Network.cs: DialogResult answer = MessageBox.Show("Solved! Would you like to open the puzzle box to go to the next puzzle? 'No' will let you continue to play with this one.","Solved",MessageBoxButtons.YesNo);
Network.cs: if (nt.TheTest == NetTestType.HelpRequest && sHost == "" && dHost == nt.dHost && dHost == "?Button")
Network.cs: if (nc.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
Network.cs: Console.WriteLine("Debugging");
Network.cs: Console.WriteLine("Debugging");
Network.cs: myPackets[loop].AddMessage(DebugLevel.info, "Packet Tick Counter reached. Did the packet go into an infinite loop?");
Network.cs: Console.WriteLine("Total seconds = " + Duration.TotalSeconds.ToString() + " Stopping.");
Network.cs: pkt.Tracking.AddMessage(DebugLevel.packet, "Network", "The packet timed out.");
Network.cs: pkt.Tracking.Status = "The packet timed out and was dropped.";
Network.cs: Console.WriteLine("----All Done----");
Network.cs: if (nc.GetType().ToString() == "EduNetworkBuilder.NetworkLink")
Network.cs: if (nc.GetType().ToString() == "EduNetworkBuilder.NetworkDevice")
Network.cs: //Console.WriteLine("position=" + HowFar.ToString());
Network.cs: //Console.WriteLine("position=" + HowFar.ToString());
NetworkBuilder.cs: public Network myNetwork = new Network("");
NetworkBuilder.cs: private string selectedButton = "";
NetworkBuilder.cs: public string ChosenLanguage = "en"; //The language to try to load
NetworkBuilder.cs: myTooltip.SetToolTip(rbHelp1, "Show no help for the puzzle");
NetworkBuilder.cs: myTooltip.SetToolTip(rbHelp2, "Show the color of the items making the puzzle.");
NetworkBuilder.cs: myTooltip.SetToolTip(rbHelp3, "Color-code & give minor mouse-over help for the puzzle.");
NetworkBuilder.cs: myTooltip.SetToolTip(rbHelp4, "Color-code & give decent mouse-over help for the puzzle.");
NetworkBuilder.cs: myTooltip.SetToolTip(btnHelp, "Show the message describing the puzzle.");
NetworkBuilder.cs: lblStatus.Text = "";
NetworkBuilder.cs: LanguageResources = new ResourceManager("EduNetworkBuilder.Resources.languages.edustrings", MyAssembly);
NetworkBuilder.cs: if (answer == null) return "";
NetworkBuilder.cs: myNetwork.NoteActionDone(NetTestType.ReadContextHelp, me.Name, "Read");
NetworkBuilder.cs: BuildButton("btnSwitch", Properties.Resources.Switch, "Add a switch to the network.");
NetworkBuilder.cs: BuildButton("btnHub", Properties.Resources.Hub, "Add a hub to the network.");
NetworkBuilder.cs: BuildButton("btnServer", Properties.Resources.Server, "Add a server to the network.");
NetworkBuilder.cs: BuildButton("btnLaptop", Properties.Resources.Laptop, "Add a laptop to the network.");
NetworkBuilder.cs: BuildButton("btnPC", Properties.Resources.PC, "Add a PC to the network.");
NetworkBuilder.cs: BuildButton("btnRouter", Properties.Resources.Router, "Add a Router to the network.");
NetworkBuilder.cs: BuildButton("btnIPPhone", Properties.Resources.ip_phone, "Add an IP-Phone to the network.");
NetworkBuilder.cs: BuildButton("btnFirewall", Properties.Resources.firewall, "Add a firewall to the network.");
NetworkBuilder.cs: BuildButton("btnPrinter", Properties.Resources.Printer, "Add a printer to the network.");
NetworkBuilder.cs: BuildButton("btnCopier", Properties.Resources.Copier, "Add a copier to the network.");
NetworkBuilder.cs: BuildButton("btnMicrowave", Properties.Resources.microwave, "Add a microwave to the network.");
NetworkBuilder.cs: BuildButton("btnFluorescent", Properties.Resources.fluorescent, "Add a light to the network.");
NetworkBuilder.cs: BuildButton("btnWAP", Properties.Resources.wap, "Add a Wireless Access Point to the network.");
NetworkBuilder.cs: BuildButton("btnWRouter", Properties.Resources.WRouter, "Add a Wireless Router to the network.");
NetworkBuilder.cs: BuildButton("btnWBridge", Properties.Resources.WBridge, "Add a Wireless Bridge to the network.");
NetworkBuilder.cs: BuildButton("btnWRepeater", Properties.Resources.WRepeater, "Add a Wireless Repeater to the network.");
NetworkBuilder.cs: BuildButton("btnCellphone", Properties.Resources.cellphone, "Add a Cellhone to the network.");
NetworkBuilder.cs: BuildButton("btnTablet", Properties.Resources.tablet, "Add a Tablet to the network.");
NetworkBuilder.cs: BuildButton("btnLink", Properties.Resources.link, "Use a network cable to connect network components.");
NetworkBuilder.cs: BuildButton("btnSelect", Properties.Resources.select, "Select items from the network.");
NetworkBuilder.cs: if (myNetwork.NetworkFilename != "")
NetworkBuilder.cs: Text = "EduNetworkBuilder";
NetworkBuilder.cs: if (myNetwork.NetTitle.GetText() != "")
NetworkBuilder.cs: Text += ": " + myNetwork.NetTitle.GetText();
NetworkBuilder.cs: if (myNetwork.NetMessage.GetText() != "")
NetworkBuilder.cs: System.Resources.ResourceManager("EduNetworkBuilder.Properties.Resources",
NetworkBuilder.cs: MessageBox.Show("Skipping Invalid Puzzle: '" + str + "'");
NetworkBuilder.cs: //Console.WriteLine("Puzzle: " + str + " " + newPuzzle.PuzzleTitle);
NetworkBuilder.cs: if(Regex.IsMatch(str,"^Level"))
NetworkBuilder.cs: lblStatus.Text = "";
NetworkBuilder.cs: selectedButton = "";
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Ping " + tStr);
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Arp " + tStr);
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Ping [host]");
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Arp Request [host]");
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Clear Arp Table");
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Delete");
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Edit");
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("DHCP Request");
NetworkBuilder.cs: pbNetworkView.ContextMenuStrip.Items.Add("Remove Link To " + host);
NetworkBuilder.cs: released = Regex.Replace(released, ".* ", "");
NetworkBuilder.cs: todo = destination.Edit(ItemClickedOn, "Ping IP");
NetworkBuilder.cs: string dest = Regex.Replace(itemname, "Ping ", "");
NetworkBuilder.cs: string dest = Regex.Replace(itemname, "Arp ", "");
NetworkBuilder.cs: IPAddress destination = new IPAddress(NB.ZeroIPString, "255.255.255.255", IPAddressType.ip_only);
NetworkBuilder.cs: todo = destination.Edit(ItemClickedOn, "Arp Request");
NetworkBuilder.cs: lblStatus.Text = "";
NetworkBuilder.cs: if (selectedButton == "btnLink")
NetworkBuilder.cs: string newtooltip = "";
NetworkBuilder.cs: myNetwork = new Network("");
NetworkBuilder.cs: mydialog.Filter = "EduNet File (*.enbx)|*.enbx";
NetworkBuilder.cs: if (LastPath != null && LastPath != "") mydialog.FileName = LastPath;
NetworkBuilder.cs: if(!Regex.IsMatch(mydialog.FileName,@"^.*.enbx$"))
NetworkBuilder.cs: MessageBox.Show("EduNetworkBuilder can only open .enbx files. If this is a valid edunetwork file, please rename it.");
NetworkBuilder.cs: if (oldfile != null && oldfile != "" && File.Exists(oldfile))
NetworkBuilder.cs: mydialog.Filter = "EduNet File (*.enbx)|*.enbx";
NetworkBuilder.cs: if (myNetwork.NetworkFilename != "")
NetworkBuilder.cs: todo = destination.Edit(null, "Ping IP");
NetworkBuilder.cs: System.Resources.ResourceManager("EduNetworkBuilder.Properties.Resources",
NetworkBuilder.cs: LoadNetworkFromResource("OneNet");
NetworkBuilder.cs: LoadNetworkFromResource("TwoNets");
NetworkBuilder.cs: LoadNetworkFromResource("DHCP");
NetworkBuilder.cs: LoadNetworkFromResource("OneNet");
NetworkBuilder.cs: LoadNetworkFromResource("TwoNets");
NetworkBuilder.cs: LoadNetworkFromResource("DHCP");
NetworkBuilder.cs: LoadNetworkFromResource("ThreeNets");
NetworkBuilder.cs: LoadNetworkFromResource("ThreeNets");
NetworkBuilder.cs: //MessageBox.Show("Trying Localpath: " + uri.LocalPath);
NetworkBuilder.cs: //MessageBox.Show("isUNC: " + uri.IsUnc.ToString());
NetworkBuilder.cs: //MessageBox.Show("isFile: " + uri.IsFile.ToString());
NetworkBuilder.cs: bool didsomething = myNetwork.NoteActionDone(NetTestType.HelpRequest, "", "?Button");
NetworkBuilder.cs: rtwin = new RTFWindow("Help: " + myNetwork.NetTitle.GetText(), myNetwork.NetMessage.GetText(), myNetwork.NetTests);
NetworkBuilder.cs: LoadNetworkFromResource("firewalls");
NetworkBuilder.cs: LoadNetworkFromResource("firewalls");
NetworkBuilder.cs: DialogResult answer = MessageBox.Show("Changing the language can only be done when the program starts: Close the program and prompt for a new language when you start it again?","Are you Sure?",MessageBoxButtons.YesNoCancel);
NetworkCard.cs: private string _nic_name="";
NetworkCard.cs: nInterface = new NetworkInterface(NicName(), "127.0.0.1", "255.0.0.0", myID);
NetworkCard.cs: writer.WriteStartElement("nic");
NetworkCard.cs: writer.WriteElementString("nictype", myNicType.ToString());
NetworkCard.cs: writer.WriteElementString("nicname", _nic_name);
NetworkCard.cs: myID.Save(writer, "myid");
NetworkCard.cs: writer.WriteElementString("nictype", myNicType.ToString());
NetworkCard.cs: writer.WriteElementString("uniqueidentifier", UniqueIdentifier.ToString());
NetworkCard.cs: writer.WriteElementString("usesdhcp", UsesDHCP.ToString());
NetworkCard.cs: if(EncryptionKey != "")
NetworkCard.cs: writer.WriteElementString("encryptionkey", EncryptionKey);
NetworkCard.cs: if (SSID != "")
NetworkCard.cs: writer.WriteElementString("ssid", SSID);
NetworkCard.cs: TunnelEndpoint.Save(writer, "tunnelendpoint");
NetworkCard.cs: string connected = " ";
NetworkCard.cs: if (isConnected(true)) connected = "*";
NetworkCard.cs: return NicName() + connected + " " + MAC;
NetworkCard.cs: string DHCPString = "";
NetworkCard.cs: if (UsesDHCP && CanUseDHCP) DHCPString = "DHCP: ";
NetworkCard.cs: Tracker.AddMessage(DebugLevel.routing, myID.HostName, "Found local interface: ip" + nIF.myIP.GetIP.ToIpString() +
NetworkCard.cs: " gw:" + nIF.myIP.GetMask.ToIpString());
NetworkCard.cs: Tracker.AddMessage(DebugLevel.routing, myID.HostName, " IP of local: " + theIP.GetIPString + " " + theIP.GetGateway.ToIpString());
NetworkCard.cs: //if(nPacket.sourceMAC == null || nPacket.sourceMAC == "" || nPacket.isFresh)
NetworkCard.cs: if (nPacket.destMAC == null || nPacket.destMAC == "")
NetworkCard.cs: if(nPacket.destMAC == "")
NetworkCard.cs: nPacket.AddMessage(DebugLevel.debug, " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString);
NetworkCard.cs: string hostname = "No Host";
NetworkCard.cs: nPacket.Tracking.Status = hostname + " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString;
NetworkCard.cs: nPacket.PacketDump(myID.HostName + "-" + _nic_name, DebugPausePoint.packet_out);
NetworkCard.cs: nPacket.Tracking.AddMessage(DebugLevel.natting, WhereFrom.hostname, "MASQ: Changing outbound IP to: " + nf.myIP.GetIPString);
NetworkCard.cs: if (nPacket.destMAC == null || nPacket.destMAC == "")
NetworkCard.cs: if (nPacket.destMAC == "")
NetworkCard.cs: nPacket.AddMessage(DebugLevel.debug, " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString);
NetworkCard.cs: string hostname = "No Host";
NetworkCard.cs: nPacket.Tracking.Status = hostname + " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString;
NetworkCard.cs: nPacket.PacketDump(myID.HostName + "-" + _nic_name, DebugPausePoint.packet_out);
NetworkCard.cs: EncryptionKey = "";
NetworkCard.cs: if((tPacket.InboundNic != null && tPacket.InboundNic.GetNicType == NicType.wan) || tPacket.InboundNic == null || tPacket.destMAC == "")
NetworkCard.cs: if(nPacket.sourceMAC == null || nPacket.sourceMAC == "" || nPacket.isFresh)
NetworkCard.cs: string getMAC="";
NetworkCard.cs: if (getMAC != "") nPacket.destMAC = getMAC;
NetworkCard.cs: if (nPacket.destMAC == "")
NetworkCard.cs: nPacket.AddMessage(DebugLevel.debug, " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString);
NetworkCard.cs: string hostname = "No Host";
NetworkCard.cs: nPacket.Tracking.Status = hostname + " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString;
NetworkCard.cs: if (nPacket.sourceMAC == null || nPacket.sourceMAC == "")
NetworkCard.cs: if (nPacket.destMAC == null || nPacket.destMAC == "" && tPacket.OutboundIP != null)
NetworkCard.cs: tPacket.Tracking.AddMessage(DebugLevel.natting, nd.hostname, "MASQ: Changing source IP back to: " + oAddress.GetIPString);
NetworkCard.cs: tPacket.AddMessage(DebugLevel.routing, "The packet was rejected by the firewall.");
NetworkCard.cs: tPacket.AddMessage(DebugLevel.debug, " The packet was not expected by the firewall, so it was rejected.");
NetworkCard.cs: string hostname = "No Host";
NetworkCard.cs: tPacket.Tracking.Status = hostname + " The packet was rejected by the firewall.. Dropped.";
NetworkCard.cs: tPacket.AddMessage(DebugLevel.routing,"The Packet was destined for a different machine (MAC Address): Rejected");
NetworkCard.cs: tPacket.AddMessage(DebugLevel.debug, " Device MAC: " + MAC + " did not match packet: " + tPacket.destMAC);
NetworkCard.cs: string hostname = "No Host";
NetworkCard.cs: tPacket.Tracking.Status = hostname + " Packet destined for another machine. Dropped.";
NetworkCard.cs: throw new ArgumentException("The type must be serializable.", "source");
NetworkCardEditor.cs: string btnval = "0.0.0.0";
NetworkCardEditor.cs: lblVPNEnd.Text = "VPN Endpoint:";
NetworkCardEditor.cs: lblVPNEncrypt.Text = "Encryption Key:";
NetworkCardEditor.cs: lblVPNEnd.Text = "SSID:";
NetworkCardEditor.cs: lblVPNEncrypt.Text = "Wireless Key:";
NetworkCardEditor.cs: string btnval = "0.0.0.0";
NetworkCardEditor.cs: lblLinkStatus.Text = "Connected";
NetworkCardEditor.cs: lblLinkStatus.Text = "Disconnected";
NetworkCardEditor.cs: MyNicToEdit.TunnelEndpoint = new IPAddress(NB.ZeroIPString, "255.255.255.0", IPAddressType.ip_only);
NetworkCardEditor.cs: MyNicToEdit.TunnelEndpoint.Edit(nd,"Endpoint");
NetworkComponent.cs: public bool IsDirty = true; //If something has changed and it needs to be re-drawn. It starts as "true"
NetworkComponent.cs: public string hostname = "";
NetworkComponent.cs: throw new ArgumentException("The type must be serializable.", "source");
NetworkDevice.cs: DefaultGW.Edit(this,"Default Gateway");
NetworkDevice.cs: writer.WriteStartElement("device");
NetworkDevice.cs: writer.WriteElementString("hostname", hostname);
NetworkDevice.cs: writer.WriteElementString("size", Size.ToString());
NetworkDevice.cs: writer.WriteElementString("uniqueidentifier", UniqueIdentifier.ToString());
NetworkDevice.cs: writer.WriteElementString("location", MyLocation.X.ToString() + "," + MyLocation.Y.ToString());
NetworkDevice.cs: writer.WriteElementString("mytype", myType.ToString());
NetworkDevice.cs: writer.WriteElementString("isdns", isDNSServer.ToString());
NetworkDevice.cs: writer.WriteElementString("isdhcp", isDHCPServer.ToString());
NetworkDevice.cs: DefaultGW.Save(writer, "gateway");
NetworkDevice.cs: ip.Save(writer, "route");
NetworkDevice.cs: dhcp.Save(writer, "dhcprange");
NetworkDevice.cs: answer += "\n" + addr;
NetworkDevice.cs: answer += "\n" + tString;
NetworkDevice.cs: MessageBox.Show("The network card," + NICs[index].NicName() + " is locked as part of the puzzle.", "Locked NIC");
NetworkDevice.cs: if (nic.SSID == "") continue;
NetworkDevice.cs: tstr = Regex.Replace(name, " .*", "");
NetworkDevice.cs: Font stringFont = new Font("Consolas", 17);
NetworkDevice.cs: string title = "";
NetworkDevice.cs: title += "if: ";
NetworkDevice.cs: title += nic.NicName() + ": ";
NetworkDevice.cs: return new HostNicID(-1, -1, hostname, "");
NetworkDevice.cs: if (dest.GetMask != 0 && dest.GetMask.ToIpString() != "255.255.255.0")
NetworkDevice.cs: Packet DHCPPacket = new Packet(this, "", NB.BroadcastMACString, "DHCP Request", PacketType.dhcp_request);
NetworkDevice.cs: Packet PingPacket = new Packet(this,Destination,"Ping",PacketType.ping_request);
NetworkDevice.cs: Packet ArpPacket = new Packet(this, Destination, "Arp Request", PacketType.arp_request);
NetworkDevice.cs: public void TunnelPacketFromHere(IPAddress Destination, Packet Payload, string Encryption = "")
NetworkDevice.cs: if (Encryption != "")
NetworkDevice.cs: Packet TunnelPacket = new Packet(this, Destination, "Tunnel", TunType);
NetworkDevice.cs: //Console.WriteLine(hostname + ": packet=" + tPacket.MyType.ToString());
NetworkDevice.cs: //Console.WriteLine(" " + hostname + ": d:" + ipc.destIP.GetIPString + " s:" + tPacket.sourceIP.GetIPString);
NetworkDevice.cs: // Console.WriteLine(" Broadcast");
NetworkDevice.cs: //Console.WriteLine(" " + hostname + ": True");
NetworkDevice.cs: // Set the "we have processed it" flag
NetworkDevice.cs: Console.WriteLine("Debug");
NetworkDevice.cs: //if we are supposed to route (do-not-route flag not set) or if the packet is "fresh"
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " No route to host: " + tPacket.destIP.GetIPString);
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " No route to host: " + tPacket.destIP.GetIPString;
NetworkDevice.cs: if (tPacket.destMAC == "")
NetworkDevice.cs: //The packet was not successfully sent anywhere. DMac = "". This means no host with the specified IP
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " Failed: No such IP on the local network - Arp only searches the local network.");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " Failed: No such IP on the local network.";
NetworkDevice.cs: //The packet was not successfully sent anywhere. DMac = "". This means no host with the specified IP
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " Failed: No such IP.");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " Failed: No such IP.";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " No local interface to send packet out.");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " No local interface to send packet out";
NetworkDevice.cs: nPacket = new Packet(this, tPacket.sourceIP, "", PacketType.ping_answer);
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tPing success: The ping reached the destination." + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString();
NetworkDevice.cs: nPacket.destMAC = "";
NetworkDevice.cs: nPacket.sourceMAC = "";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, "The broadcast ping reached a destination that was not on the same network");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\t" + "The broadcast ping reached a destination that was not on the same network" + tPacket.sourceIP.GetIP.ToIpString() + " -> " + hostname;
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, "Success! The ping returned from its destination." + " But some was lost: health=" + tPacket.health.ToString() );
NetworkDevice.cs: tPacket.Tracking.Status = hostname + string.Format(":\tPing partial success: {0}% packet loss. {1} -> {2}", left , tPacket.sourceIP.GetIP.ToIpString(),tPacket.destIP.GetIP.ToIpString());
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tPing success: The ping returned from its destination" + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString();
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tPing failed: Arrived at a machine that was not expecting it and was rejected." + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString();
NetworkDevice.cs: if (tstrings.Count > 0 && !Regex.IsMatch(tstrings[0], "127.0.0.1"))
NetworkDevice.cs: nPacket.destMAC = "";
NetworkDevice.cs: tPacket.sourceMAC = "";
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tArp Request found IP: " + tPacket.sourceIP.GetIPString + " on MAC: "+ nPacket.sourceMAC;
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tArp request success: Who Has " + tPacket.sourceIP.GetIP.ToIpString() + " tell " + tPacket.sourceIP.GetIP.ToIpString() + " = " + tPacket.sourceMAC;
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tARP failed: Arrived at a machine that was not expecting it and was rejected." + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString();
NetworkDevice.cs: nPacket.OutboundMAC = "";
NetworkDevice.cs: string IP = "";
NetworkDevice.cs: if(IP == "" && nPacket.WhereAmI != null) {
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tDHCP Request found Server: " + IP;
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tDHCP request/answer. " + tPacket.payloadIP.GetIP.ToIpString();
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, "ND_ProcessArrival_PackReturnErr1");
NetworkDevice.cs: string sIP = "?.?.?.?";
NetworkDevice.cs: tPacket.Tracking.Status = hostname + ":\tDHCP Request failed: Arrived at a machine that was not expecting it and was rejected." + sIP + " -> " + tPacket.destIP.GetIP.ToIpString();
NetworkDevice.cs: string DHCPGW = "";
NetworkDevice.cs: if(nic.UsesDHCP && nic.CanUseDHCP && DHCPGW == "")
NetworkDevice.cs: if (DHCPGW != "")
NetworkDevice.cs: if((tPacket.OutboundMAC == null || tPacket.OutboundMAC == "") &&
NetworkDevice.cs: (tPacket.sourceMAC == "" || tPacket.sourceMAC == null))
NetworkDevice.cs: if ((tPacket.OutboundMAC == null || tPacket.OutboundMAC == "") &&
NetworkDevice.cs: (tPacket.sourceMAC == "" || tPacket.sourceMAC == null))
NetworkDevice.cs: if (!nic.HasIP(new IPAddress("127.0.0.1").GetIP)) //don't bother pinging on the loopback
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: DHCP Server does not have gateway set. DHCP server failing" + tPacket.OutboundIP.GetIP.ToIpString());
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " ERROR: DHCP Server does not have gateway set. DHCP server failing";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: No route or local interface for packet. " + tPacket.OutboundIP.GetIP.ToIpString());
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " No route or local interface for packet.";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: No local Network Card for packet. :" + tPacket.OutboundIP.GetIP.ToIpString());
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " No route or local network card for packet.";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: No local interface for packet. :" + tPacket.OutboundIP.GetIP.ToIpString());
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " No route or local interface for packet.";
NetworkDevice.cs: if (tPacket.destMAC == "" || tPacket.destMAC == null) //was != broadcast-mac
NetworkDevice.cs: if (tPacket.OutboundMAC == "")
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " Failed: no card available to use.";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.debug, hostname + " Packet request fell on deaf ears. This is not a DHCP server.");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " Failed: Not a DHCP Server. Packet Dropped.";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.debug, hostname + " Not a router");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " This device is not a router. Packet dropped.";
NetworkDevice.cs: tPacket.AddMessage(DebugLevel.debug, hostname + " The device had no local IPs. Quietly dropped.");
NetworkDevice.cs: tPacket.Tracking.Status = hostname + " Failed: no IPs local to the packet.";
NetworkDevice.cs: return "";
NetworkDevice.cs: return "";
NetworkDevice.cs: return new HostNicID(-1,-1,"","");
NetworkDevice.cs: return new HostNicID(-1, -1, "", "");
NetworkDevice.cs: if (arp == "")
NetworkDevice.cs: if (found == "")
NetworkDevice.cs: if (ip.GetIP.ToIpString() != "127.0.0.1")
NetworkDevice.cs: theStrings.Add("IF:" + ip.GetIP.ToIpString().PadLeft(15) + " Range: " +
NetworkDevice.cs: ip.GetMask.ToIpString() + " - " + ip.GetGateway.ToIpString());
NetworkDevice.cs: if (ip.GetIP.ToIpString() != "127.0.0.1" && InterfaceIP.IsLocal(ip))
NetworkInterface.cs: writer.WriteStartElement("interface");
NetworkInterface.cs: writer.WriteElementString("nicname", nic_name);
NetworkInterface.cs: myIP.Save(writer, "myip");
NetworkInterface.cs: tstring += " - " + myIP.GetMask.ToIpString();
NetworkInterface.cs: mask = Regex.Replace(mask, "0", "");
NetworkInterface.cs: tstring += "/" + count.ToString();
NetworkInterface.cs: tPacket.sourceIP = new IPAddress(myIP.GetIP.ToIpString(), "", IPAddressType.ip_only); //We only want the IP address
NetworkLink.cs: if(IsWireless && AccessPoint != null && Client != null && AccessPoint.SSID != null && AccessPoint.SSID != "")
NetworkLink.cs: MessageBox.Show("The SSID and Key have been updated on the client.");
NetworkLink.cs: writer.WriteStartElement("link");
NetworkLink.cs: SrcNic.Save(writer, "SrcNic");
NetworkLink.cs: DstNic.Save(writer, "DstNic");
NetworkLink.cs: writer.WriteElementString("hostname", hostname);
NetworkLink.cs: writer.WriteElementString("linktype", theLinkType.ToString());
NetworkLink.cs: writer.WriteElementString("uniqueidentifier", UniqueIdentifier.ToString());
NetworkLink.cs: //Console.WriteLine(" health=" + tPacket.health.ToString());
NetworkLink.cs: tPacket.Tracking.AddMessage(DebugLevel.info, this, "The packet was corrupted. The network wire may run too close to electricity or fluorescent lighting, or the wireless path is being interfered by a microwave, wireless phone, or other radio device.");
NetworkLink.cs: tPacket.Tracking.Status = "The packet got corrupted and was dropped.";
NetworkLink.cs: tPacket.Tracking.AddMessage(DebugLevel.info, this, "The packet tried to use a broken network wire and was corrupted.");
NetworkLink.cs: tPacket.Tracking.Status = "The packet got corrupted and was dropped.";
NetworkLink.cs: tPacket.AddMessage(DebugLevel.info, "Oops! We do not have anything at the end of the network wire. This should not happen!");
NetworkLink.cs: tPacket.Tracking.Status = hostname + " Nothing at far end of the wire. This should never happen..";
OptionsWindow.cs: myToolTip.SetToolTip(tbItemSize, "The size of an item (switch, PC, etc). Default is 100.");
OptionsWindow.cs: myToolTip.SetToolTip(lblItemSize, "The size of an item (switch, PC, etc). Default is 100.");
OptionsWindow.cs: myToolTip.SetToolTip(tbMessage, "The message given when the network is loaded. Instructions.");
OptionsWindow.cs: myToolTip.SetToolTip(lblNetMessage, "The message given when the network is loaded. Instructions.");
OptionsWindow.cs: myToolTip.SetToolTip(tbNetworkTitle, "The title of the network window.");
OptionsWindow.cs: myToolTip.SetToolTip(lblNetTitle, "The title of the network window.");
OptionsWindow.cs: myToolTip.SetToolTip(lblNetSize, "The height and width of the network graphics area.");
OptionsWindow.cs: myToolTip.SetToolTip(tbNetworkX, "The width of the network window graphics area.");
OptionsWindow.cs: myToolTip.SetToolTip(tbNetworkY, "The Height of the network window graphics area.");
OptionsWindow.cs: myToolTip.SetToolTip(lbTags, "The Tags that this puzzle is saved as (only for puzzles)");
OptionsWindow.cs: myToolTip.SetToolTip(lblTags, "The Tags that this puzzle is saved as (only for puzzles)");
OptionsWindow.cs: myToolTip.SetToolTip(lbTests, "The things that need to be solved before the puzzle is completed.");
OptionsWindow.cs: myToolTip.SetToolTip(lblTests, "The things that need to be solved before the puzzle is completed.");
OptionsWindow.cs: myToolTip.SetToolTip(lblLevel, "The Level that this puzzle is stored in.");
OptionsWindow.cs: myToolTip.SetToolTip(tbLevel, "The Level that this puzzle is stored in.");
OptionsWindow.cs: myToolTip.SetToolTip(lblSortOrder, "How this is sorted within the list of puzzles.");
OptionsWindow.cs: myToolTip.SetToolTip(tbSortOrder, "How this is sorted within the list of puzzles.");
OptionsWindow.cs: tbSortOrder.Text = myNet.SortOrder.ToString("00.000");
OptionsWindow.cs: if (what != "")
OptionsWindow.cs: NT = new NetTest("", "", NetTestType.NeedsDefaultGW);
OptionsWindow.cs: lbTests.ContextMenuStrip.Items.Add("Add");
OptionsWindow.cs: lbTests.ContextMenuStrip.Items.Add("Edit");
OptionsWindow.cs: lbTests.ContextMenuStrip.Items.Add("Delete");
OptionsWindow.cs: lbTests.ContextMenuStrip.Items.Add("Add");
OptionsWindow.cs: lbTests.ContextMenuStrip.Items.Add("Edit");
OptionsWindow.cs: lbTests.ContextMenuStrip.Items.Add("Delete");
OptionsWindow.cs: lbTags.ContextMenuStrip.Items.Add("Add");
OptionsWindow.cs: lbTags.ContextMenuStrip.Items.Add("Edit");
OptionsWindow.cs: lbTags.ContextMenuStrip.Items.Add("Read");
OptionsWindow.cs: lbTags.ContextMenuStrip.Items.Add("Delete");
OptionsWindow.cs: tlist.Remove("None");
OptionsWindow.cs: if(value != "" && Choice.Items.Contains(value))
OptionsWindow.cs: Done.Text = "Done";
OptionsWindow.cs: QuestionForm.Height = Done.Location.Y + Done.Height + 5; //This is too small for the form, it autosizes to "big enough"
OptionsWindow.cs: newstring = QuickPrompt("Edit Tag", "Tag:", myNet.SuggestedReadings[lbTags.SelectedIndex].ToString());
OptionsWindow.cs: if (newstring != "")
OptionsWindow.cs: newstring = QuickPrompt("Edit Tag", "Tag:", "");
OptionsWindow.cs: if (newstring != "")
OptionsWindow.cs: tbSortOrder.Text = value.ToString("00.000");
Packet.cs: PacketDump(" " + status, DebugPausePoint.packet_kill);
Packet.cs: public string payloadData = ""; //Contains the mac-address, or ip-address string, or something else
Packet.cs: public string EncryptionString = "";
Packet.cs: public string OutboundMAC = "";
Packet.cs: public string OutboundDestMAC = "";
Packet.cs: Tracking.AddMessage(DebugLevel.debug, WhereAmI, "Packet duplicated");
Packet.cs: Tracking.AddMessage(DebugLevel.info, start, theType.ToString() + "Packet Created");
Packet.cs: Tracking.AddMessage(DebugLevel.routing, start, " MAC:" + source + " -> " + dest);
Packet.cs: Tracking.AddMessage(DebugLevel.info, start, "Packet Created");
Packet.cs: Tracking.AddMessage(DebugLevel.routing, start, " IP:" + source + " -> " + dest);
Packet.cs: Tracking.AddMessage(DebugLevel.info, start, "Packet Created");
Packet.cs: Tracking.AddMessage(DebugLevel.routing, start, " IP:" + sourceIP.GetIP.ToIpString() + " -> " + dest.GetIP.ToIpString());
Packet.cs: Tracking.AddMessage(DebugLevel.info, start, "Packet Created");
Packet.cs: //Tracking.AddMessage(DebugLevel.routing, start, " IP:" + sourceIP.GetIP.ToIpString() + " -> " + dest.GetIP.ToIpString());
Packet.cs: //The packet is "inside" the device.
Packet.cs: // Here the packet is just about to exit. Maybe we need to set the "source IP"
Packet.cs: if (dMAC != "" || destMAC == NB.BroadcastMACString)
Packet.cs: Tracking.AddMessage(DebugLevel.info, WhereAmI, "Unable to find a mac address for the IP address: " + dest.GetIP.ToIpString());
Packet.cs: Tracking.Status = WhereAmI.hostname + " Failed: Unable to find a MAC address for the specified IP.";
Packet.cs: AddMessage(DebugLevel.debug, "The packet was dropped because we lost where it was. WhereAmI == null!");
Packet.cs: Tracking.Status = "NO_Host" + " Lost location of packet..";
Packet.cs: //The packet is "inside" the device.
Packet.cs: // Here the packet is just about to exit. Maybe we need to set the "source IP"
Packet.cs: AddMessage(DebugLevel.debug, "The packet was dropped because we lost where it was. WhereAmI == null!");
Packet.cs: Tracking.Status = "NO_Host" + " Lost location of packet..";
Packet.cs: AddMessage(DebugLevel.debug, "The packet was dropped because we lost where it was. WhereAmI == null!");
Packet.cs: Tracking.Status = "NO_Host" + " Lost location of packet..";
Packet.cs: OutboundMAC = "";
Packet.cs: Console.WriteLine("Starting on link. SMAC: " + sourceMAC + " DMAC: " + destMAC);
Packet.cs: AddMessage(DebugLevel.debug, " Starting on link");
Packet.cs: Tracking.AddMessage(DebugLevel.info, "Packet", "Packet failed to reach any IP. No such IP on network: " + destIP.GetIPString);
Packet.cs: Tracking.Status = "Packet failed to reach IP: " + destIP.GetIPString;
Packet.cs: position = Regex.Replace(position, "packet_", "");
Packet.cs: Console.WriteLine("Pausing");
Packet.cs: Console.WriteLine(hostname + ": " + MyType.ToString());
Packet.cs: Console.Write(hostname + ": " + position + " PACKET: dstIP:" + dIP);
Packet.cs: Console.WriteLine(" dstMAC:" + destMAC);
Packet.cs: Console.Write(hostname + ": " + position + " PACKET: srcIP:" + sIP);
Packet.cs: Console.WriteLine(" srcMAC:" + sourceMAC);
Packet.cs: Console.WriteLine("---");
Packet.cs: AddMessage(DebugLevel.packet, hostname + ": " + position + " PACKET: dstIP:" + dIP + " dstMAC:" + destMAC);
Packet.cs: AddMessage(DebugLevel.packet, hostname + ": " + position + " PACKET: srcIP:" + sIP + " srcMAC:" + sourceMAC);
Packet.cs: throw new ArgumentException("The type must be serializable.", "source");
PacketMessage.cs: public string _Status = ""; //Usually "success" or "failed"
PacketMessage.cs: throw new ArgumentException("The type must be serializable.", "source");
PacketMessage.cs: string host = "unknown";
PacketMessage.cs: tString = tmessage.HostName + " \t" + tmessage.WhatLevel.ToString() + "\t" + tmessage.Message;
PacketMessage.cs: tString = time.ToString() + " ms " + Status;
RTFWindow.cs: if (tbFind.Text == "") return; //We do nothing if nothing to find.
RTFWindow.cs: MessageBox.Show("Not found.");

View File

@ -35,12 +35,10 @@ IPAddress.cs:245: return String.Join(".", parts);
IPAddressEntry.cs:32: string hostname = "";
IPAddressEntry.cs:48: if (!lNM.Contains("255"))
IPAddressEntry.cs:49: lNM = "255.255.255.0";
IPAddressEntry.cs:156: lblIP.Text = "Interface";
IPAddressEntry.cs:157: lblNetmask.Text = "Start";
IPAddressEntry.cs:158: lblGateway.Text = "End";
IPAddressEntry.cs:198: MessageBox.Show("The end IP in the range must be within the scope of the interface.");
IPAddressEntry.cs:203: MessageBox.Show("The end IP must be equal to or larger than the start IP.");
IPAddressEntry.cs:218: MessageBox.Show("The start IP in the range must be within the scope of the interface.");
IPAddressEntry.cs:157: lblNetmask.Text = "IPAE_EditStart";
IPAddressEntry.cs:158: lblGateway.Text = "IPAE_EditEnd";
IPAddressEntry.cs:203: MessageBox.Show("IPAE_tbGateValIPEqualLarger");
IPAddressEntry.cs:218: MessageBox.Show("IPAE_tbNtmskValEndIPRange");
LanguageString.cs:14: public string text="";
LanguageString.cs:15: public string language="en";
LanguageString.cs:30: if(Regex.IsMatch(theNode.Name.ToLower(),"^[a-z][a-z]_" + tag))
@ -58,7 +56,6 @@ LinkEditor.cs:88: string DstNic = "";
LinkEditor.cs:154: if (SrcNic != "")
LinkEditor.cs:160: if (DstNic != "")
LinkEditor.cs:175: if (Regex.IsMatch(SrcNic, "^wport") || Regex.IsMatch(SrcNic, "^wlan"))
ListBoxWindow.cs:39: lblInstructions.Text = "Filter the puzzles by checking one the boxes.";
ListBoxWindow.cs:42: if (SelectedTag == "ALL")
ListBoxWindow.cs:43: Text = Text + "(All Solved)";
ListBoxWindow.cs:47: if (str == SelectedTag || (SelectedTag == "ALL" && Regex.IsMatch(str,"Level")))