public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { TreeNodeCollection secNodes; if (searchData.Sectors) { nodes.Add(SectorName, SectorName); nodes[SectorName].Tag = this; secNodes = nodes[SectorName].Nodes; } else { secNodes = nodes; } foreach (HighwayData highway in Highways) { highway.GetTreeView(secNodes, searchData); } foreach (ZoneData zone in Zones) { zone.GetTreeView(secNodes, searchData); } foreach (ZoneData zone in TempZones) { zone.GetTreeView(secNodes, searchData); } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { foreach (ClusterData cluster in Clusters) { cluster.GetTreeView(nodes, searchData); } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { TreeNodeCollection clustNodes; if (searchData.Clusters) { nodes.Add(ClusterName, ClusterName); nodes[ClusterName].Tag = this; clustNodes = nodes[ClusterName].Nodes; } else { clustNodes = nodes; } foreach (RegionData region in Regions) { region.GetTreeView(clustNodes, searchData); } foreach (SectorData sector in Sectors) { sector.GetTreeView(clustNodes, searchData); } foreach (CelestialbodyData Cel in Celestialbodys) { Cel.GetTreeView(clustNodes, searchData); } foreach (HighwayData highway in Highways) { highway.GetTreeView(clustNodes, searchData); } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { if (searchData.CelestialBodies) { nodes.Add(CelestialbodyName, CelestialbodyName); nodes[CelestialbodyName].Tag = this; } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { if (((searchData.OtherShips && !IsBuildingCV()) || (searchData.BuildingCVs && IsBuildingCV()) ) && (searchData.Faction == "All" || IsOwnedBy(searchData.Faction) ) && !IsSkunk() ) { nodes.Add(ShipId, ShipName); nodes[ShipId].Tag = this; } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { TreeNodeCollection regNodes; if (searchData.Regions) { nodes.Add(RegionName, RegionName); nodes[RegionName].Tag = this; regNodes = nodes[RegionName].Nodes; } else { regNodes = nodes; } foreach (ShipData ship in Ships) { ship.GetTreeView(regNodes, searchData); } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { TreeNodeCollection zoneNodes; if (searchData.Zones) { nodes.Add(ZoneName, ZoneName); nodes[ZoneName].Tag = this; zoneNodes = nodes[ZoneName].Nodes; } else { zoneNodes = nodes; } foreach (ShipData ship in Ships) { ship.GetTreeView(zoneNodes, searchData); } }
public void GetTreeView(TreeNodeCollection nodes, UniverseSearchData searchData) { TreeNodeCollection highNodes; if (searchData.Highways) { nodes.Add(HighwayName, HighwayName); nodes[HighwayName].Tag = this; highNodes = nodes[HighwayName].Nodes; } else { highNodes = nodes; } foreach (ShipData ship in Ships) { ship.GetTreeView(highNodes, searchData); } }