private string GetMapComment(Map Map) { String Parent = ""; List <Location> Locations = World.GetLocations(); foreach (Location Loc in Locations) { foreach (Map LocMap in Loc.Maps) { if (LocMap.Pid == Map.Pid) { Parent = Loc.Name + "(" + Loc.Pid + ")"; } } } return(Map.FileName + ", " + (!String.IsNullOrEmpty(Map.ScriptName) ? Map.ScriptName + ", " : "") + Parent); }
private void addLocationToolStripMenuItem_Click(object sender, EventArgs e) { AddLocation.Locations = worldmap.GetLocations(); AddLocation.ShowDialog(); }