summaryrefslogtreecommitdiff
path: root/Aktywator/HandRecordPreview.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-27 13:40:15 +0200
committeremkael <emkael@tlen.pl>2017-09-27 13:40:15 +0200
commitd881985658c2df2f10ed855c71f67c4b993845f0 (patch)
treefef884c13603a8b8b578f642f917618118b8b62c /Aktywator/HandRecordPreview.cs
parent625fec8496401e2a9b02139d8e4c59967bfb0851 (diff)
Preview hand records present in BWS
Fixes #2
Diffstat (limited to 'Aktywator/HandRecordPreview.cs')
-rw-r--r--Aktywator/HandRecordPreview.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/Aktywator/HandRecordPreview.cs b/Aktywator/HandRecordPreview.cs
new file mode 100644
index 0000000..d5e8446
--- /dev/null
+++ b/Aktywator/HandRecordPreview.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Aktywator
+{
+ public partial class HandRecordPreview : Form
+ {
+ public HandRecordPreview()
+ {
+ InitializeComponent();
+ }
+
+ internal HandRecordPreview(HandRecord record, string boardNo) : this()
+ {
+ lNorthSpades.Text = record.north[0];
+ lNorthHearts.Text = record.north[1];
+ lNorthDiamonds.Text = record.north[2];
+ lNorthClubs.Text = record.north[3];
+ lEastSpades.Text = record.east[0];
+ lEastHearts.Text = record.east[1];
+ lEastDiamonds.Text = record.east[2];
+ lEastClubs.Text = record.east[3];
+ lSouthSpades.Text = record.south[0];
+ lSouthHearts.Text = record.south[1];
+ lSouthDiamonds.Text = record.south[2];
+ lSouthClubs.Text = record.south[3];
+ lWestSpades.Text = record.north[0];
+ lWestHearts.Text = record.north[1];
+ lWestDiamonds.Text = record.north[2];
+ lWestClubs.Text = record.west[3];
+ this.Text = "ROZDANIE " + boardNo;
+ }
+ }
+}