summaryrefslogtreecommitdiff
path: root/src/PBNBoard.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-03-08 12:51:25 +0100
committeremkael <emkael@tlen.pl>2017-03-08 12:51:25 +0100
commit31ed40344f889998fcd68e755a966141cef4e218 (patch)
tree9fa8151c842ccbedab6539a00f16fb40a1037db9 /src/PBNBoard.cs
parentac1a86665497799cbcf4747907772973e9707355 (diff)
* adding Event field if PBN is missing it
Diffstat (limited to 'src/PBNBoard.cs')
-rw-r--r--src/PBNBoard.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/PBNBoard.cs b/src/PBNBoard.cs
index d60bfe3..7578fbe 100644
--- a/src/PBNBoard.cs
+++ b/src/PBNBoard.cs
@@ -100,6 +100,23 @@ namespace BCDD
}
}
+ public String GetEvent()
+ {
+ return this.GetField("Event");
+ }
+
+ public void WriteEvent(String name)
+ {
+ for (int i = 0; i < this.Fields.Count; i++)
+ {
+ if ("Board".Equals(this.Fields[i].Key))
+ {
+ this.Fields.Insert(i, new PBNField("Event", name));
+ break;
+ }
+ }
+ }
+
public String GetLayout()
{
return this.GetField("Deal");