diff options
author | Michał Zimniewicz <michzimny@users.noreply.github.com> | 2017-03-13 12:00:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 12:00:42 +0100 |
commit | b8aa3a706a9031d9a15c464fd395ab86d117d99d (patch) | |
tree | a3f8ebce33acc7ca30ebef23d6b37d32b23053b5 /Aktywator/PBN.cs | |
parent | 00a15a32c5bb9d09b560c911373f9952e75fb0c3 (diff) | |
parent | 600b4992d3a911daac849ef9de8ce6ca0bc9c14f (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.cs | 9 |
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"); + } } } |