summaryrefslogtreecommitdiff
path: root/Aktywator/PBN.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/PBN.cs')
-rw-r--r--Aktywator/PBN.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Aktywator/PBN.cs b/Aktywator/PBN.cs
index f6d5393..e312d63 100644
--- a/Aktywator/PBN.cs
+++ b/Aktywator/PBN.cs
@@ -17,6 +17,11 @@ namespace Aktywator
{
get { return _count; }
}
+ private String _title;
+ public String title
+ {
+ get { return _title; }
+ }
public PBN(string filename, int lowBoard, int highBoard)
{
@@ -38,6 +43,10 @@ namespace Aktywator
this._count++;
}
}
+ if (pbn.Boards.Count > 0 && pbn.Boards[0].HasField("Event"))
+ {
+ this._title = pbn.Boards[0].GetField("Event");
+ }
}
}