- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
WorksheetRow row = new WorksheetRow();
row.Cells.Add("");
// ispublished
row.Cells.Add(point.IsPublished ? "+" : "");
// id superregion
row.Cells.Add(point.Town.Region.SuperRegion.Id.ToString());
// name superregion
if (cleanupTags)
row.Cells.Add(CleanXMLTags(point.Town.Region.SuperRegion.Name));
else row.Cells.Add(point.Town.Region.SuperRegion.Name);
// id rregion
row.Cells.Add(point.Town.Region.Id.ToString());
// name region
if (cleanupTags)
row.Cells.Add(CleanXMLTags(point.Town.Region.DefaultText.Name));
else row.Cells.Add(point.Town.Region.DefaultText.Name);
...
StringBuilder subwayIDs = new StringBuilder("");
StringBuilder subwayNames = new StringBuilder("");
foreach (Subway subway in point.Subways)
{
subwayIDs.Append(subway.Id).Append(", ");
subwayNames.Append(subway.DisplayName).Append(", ");
}
string sIDs = subwayIDs.ToString();
if (sIDs.Length > 0) sIDs = sIDs.Substring(0, sIDs.Length - 2);
string sNames = subwayNames.ToString();
if (sNames.Length > 0) sNames = sNames.Substring(0, sNames.Length - 2);
Это 10% от метода. Там все в том же духе.