summaryrefslogtreecommitdiff
path: root/Aktywator/PBN.cs
diff options
context:
space:
mode:
authorMichał Zimniewicz <michzimny@users.noreply.github.com>2017-03-13 12:00:42 +0100
committerGitHub <noreply@github.com>2017-03-13 12:00:42 +0100
commitb8aa3a706a9031d9a15c464fd395ab86d117d99d (patch)
treea3f8ebce33acc7ca30ebef23d6b37d32b23053b5 /Aktywator/PBN.cs
parent00a15a32c5bb9d09b560c911373f9952e75fb0c3 (diff)
parent600b4992d3a911daac849ef9de8ce6ca0bc9c14f (diff)
Merge pull request #7 from emkael/hand-records-confirmation
Identyfikacja pliku PBN przy wczytywaniu rozkładów
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");
+ }
}
}