summaryrefslogtreecommitdiff
path: root/Aktywator/HandRecordPreview.cs
blob: d5e8446d0c31b9b52dee16fbfaf3d8874cd924c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
        }
    }
}