using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Reflection;

using Betfair.Gamex.API.Entities;

using Betfair.Gamex.API.UberClient.Classes;

namespace Betfair.Gamex.API.UberClient.Controls.GameView
{
	/// <summary>
	/// Shows the texas holdem game
	/// </summary>
    public class OmahaView : Betfair.Gamex.API.UberClient.Controls.GameView.GameViewBase, IGameControl
	{
		#region Form Controls
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.Windows.Forms.PictureBox Player1Card1;
		private System.Windows.Forms.PictureBox Player1Card2;
		private System.Windows.Forms.PictureBox Player2Card2;
		private System.Windows.Forms.PictureBox Player2Card1;
		private System.Windows.Forms.PictureBox Player3Card2;
		private System.Windows.Forms.PictureBox Player3Card1;
		private System.Windows.Forms.PictureBox Player4Card2;
		private System.Windows.Forms.PictureBox Player4Card1;
		private System.Windows.Forms.Label GameTitleLabel;
		private System.Windows.Forms.Label DealLabel;
		private System.Windows.Forms.Label PreFlopLabel;
		private System.Windows.Forms.Label FlopLabel;
		private System.Windows.Forms.Label TurnLabel;
		private System.Windows.Forms.Label RiverLabel;
		private System.Windows.Forms.PictureBox ProgressBar;
        private System.Windows.Forms.PictureBox ProgressGrey;
        private System.Windows.Forms.Label Player2StatusLabel;
        private System.Windows.Forms.Label Player3StatusLabel;
        private System.Windows.Forms.Label Player4StatusLabel;
		private System.Windows.Forms.Label SuspendedLabel;
		private Betfair.Gamex.API.UberClient.Controls.OddsPanel Player1Price;
		private Betfair.Gamex.API.UberClient.Controls.OddsPanel Player2Price;
        private Betfair.Gamex.API.UberClient.Controls.OddsPanel Player3Price;
        private Betfair.Gamex.API.UberClient.Controls.OddsPanel Player1LayPrice;
        private Betfair.Gamex.API.UberClient.Controls.OddsPanel Player3LayPrice;
        private Betfair.Gamex.API.UberClient.Controls.OddsPanel Player4LayPrice;
        private System.Windows.Forms.Label Player1StatusLabel;
		private System.Windows.Forms.Label Player1DescriptionLabel;
		private System.Windows.Forms.Label Player2DescriptionLabel;
		private System.Windows.Forms.Label Player3DescriptionLabel;
		private System.Windows.Forms.Label Player4DescriptionLabel;
        private OddsPanel Player4Price;
        private OddsPanel Player2LayPrice;
        private PictureBox Player4Card4;
        private PictureBox Player4Card3;
        private PictureBox Player3Card4;
        private PictureBox Player3Card3;
        private PictureBox Player2Card4;
        private PictureBox Player2Card3;
        private PictureBox Player1Card4;
        private PictureBox Player1Card3;
        private PictureBox CommunityCard1;
        private PictureBox CommunityCard2;
        private PictureBox CommunityCard3;
        private PictureBox CommunityCard4;
        private PictureBox CommunityCard5;
        private OddsPanel FlushLay;
        private OddsPanel FlushBack;
        private Label FlushStatus;
        private OddsPanel StraightLay;
        private OddsPanel StraightBack;
        private Label StraightStatus;
        private OddsPanel ThreeOfAKindLay;
        private OddsPanel ThreeOfAKindBack;
        private Label ThreeOfAKindStatus;
        private OddsPanel TwoPairLay;
        private OddsPanel TwoPairBack;
        private Label TwoPairStatus;
        private OddsPanel FullHouseLay;
        private OddsPanel FullHouseBack;
        private Label FullHouseStatus;
        #endregion

        private channelSnapshot channelSnapshot;
        private MainForm m_Parent;

        private int roundId = 0;
        private gameDataObject[] gameData;
        private marketSnapshot market;
        private marketSnapshot secondaryMarket;

        private selectionSnapshot player1Selection;
        private selectionSnapshot player2Selection;
        private selectionSnapshot player3Selection;
        private selectionSnapshot player4Selection;
        private selectionSnapshot twoPairsOrWorse;
        private selectionSnapshot threeOfAKind;
        private selectionSnapshot straight;
        private selectionSnapshot flush;
        private selectionSnapshot fullHouseOrBetter;

		public event ShowBetPlaceHandler ShowBetPlacement;
		public event ClearBetsHandler ClearBets;

        /// <summary>
        /// Constructor
        /// </summary>
        public OmahaView(MainForm parent)
		{
			InitializeComponent();
            m_Parent = parent;
		}

        #region Component Designer generated code
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Windows.Forms.Label CommunityCardsLabel;
            System.Windows.Forms.Label Player1Label;
            System.Windows.Forms.Label Player2Label;
            System.Windows.Forms.Label Player3Label;
            System.Windows.Forms.Label Player4Label;
            System.Windows.Forms.Label label9;
            System.Windows.Forms.Label label6;
            System.Windows.Forms.Label label2;
            System.Windows.Forms.Label Exotic1Label;
            System.Windows.Forms.Label label1;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OmahaView));
            this.Player1Card1 = new System.Windows.Forms.PictureBox();
            this.Player1Card2 = new System.Windows.Forms.PictureBox();
            this.Player2Card2 = new System.Windows.Forms.PictureBox();
            this.Player2Card1 = new System.Windows.Forms.PictureBox();
            this.Player3Card2 = new System.Windows.Forms.PictureBox();
            this.Player3Card1 = new System.Windows.Forms.PictureBox();
            this.Player4Card2 = new System.Windows.Forms.PictureBox();
            this.Player4Card1 = new System.Windows.Forms.PictureBox();
            this.GameTitleLabel = new System.Windows.Forms.Label();
            this.DealLabel = new System.Windows.Forms.Label();
            this.PreFlopLabel = new System.Windows.Forms.Label();
            this.FlopLabel = new System.Windows.Forms.Label();
            this.TurnLabel = new System.Windows.Forms.Label();
            this.RiverLabel = new System.Windows.Forms.Label();
            this.ProgressBar = new System.Windows.Forms.PictureBox();
            this.ProgressGrey = new System.Windows.Forms.PictureBox();
            this.Player1StatusLabel = new System.Windows.Forms.Label();
            this.Player2StatusLabel = new System.Windows.Forms.Label();
            this.Player3StatusLabel = new System.Windows.Forms.Label();
            this.Player4StatusLabel = new System.Windows.Forms.Label();
            this.SuspendedLabel = new System.Windows.Forms.Label();
            this.Player1DescriptionLabel = new System.Windows.Forms.Label();
            this.Player2DescriptionLabel = new System.Windows.Forms.Label();
            this.Player3DescriptionLabel = new System.Windows.Forms.Label();
            this.Player4DescriptionLabel = new System.Windows.Forms.Label();
            this.Player4Card4 = new System.Windows.Forms.PictureBox();
            this.Player4Card3 = new System.Windows.Forms.PictureBox();
            this.Player3Card4 = new System.Windows.Forms.PictureBox();
            this.Player3Card3 = new System.Windows.Forms.PictureBox();
            this.Player2Card4 = new System.Windows.Forms.PictureBox();
            this.Player2Card3 = new System.Windows.Forms.PictureBox();
            this.Player1Card4 = new System.Windows.Forms.PictureBox();
            this.Player1Card3 = new System.Windows.Forms.PictureBox();
            this.CommunityCard1 = new System.Windows.Forms.PictureBox();
            this.CommunityCard2 = new System.Windows.Forms.PictureBox();
            this.CommunityCard3 = new System.Windows.Forms.PictureBox();
            this.CommunityCard4 = new System.Windows.Forms.PictureBox();
            this.CommunityCard5 = new System.Windows.Forms.PictureBox();
            this.FlushStatus = new System.Windows.Forms.Label();
            this.StraightStatus = new System.Windows.Forms.Label();
            this.ThreeOfAKindStatus = new System.Windows.Forms.Label();
            this.TwoPairStatus = new System.Windows.Forms.Label();
            this.FullHouseStatus = new System.Windows.Forms.Label();
            this.FullHouseLay = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.FullHouseBack = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.FlushLay = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.FlushBack = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.StraightLay = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.StraightBack = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.ThreeOfAKindLay = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.ThreeOfAKindBack = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.TwoPairLay = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.TwoPairBack = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player4LayPrice = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player3LayPrice = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player2LayPrice = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player1LayPrice = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player4Price = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player3Price = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player2Price = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            this.Player1Price = new Betfair.Gamex.API.UberClient.Controls.OddsPanel();
            CommunityCardsLabel = new System.Windows.Forms.Label();
            Player1Label = new System.Windows.Forms.Label();
            Player2Label = new System.Windows.Forms.Label();
            Player3Label = new System.Windows.Forms.Label();
            Player4Label = new System.Windows.Forms.Label();
            label9 = new System.Windows.Forms.Label();
            label6 = new System.Windows.Forms.Label();
            label2 = new System.Windows.Forms.Label();
            Exotic1Label = new System.Windows.Forms.Label();
            label1 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ProgressBar)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ProgressGrey)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard5)).BeginInit();
            this.SuspendLayout();
            // 
            // CommunityCardsLabel
            // 
            CommunityCardsLabel.BackColor = System.Drawing.Color.Transparent;
            CommunityCardsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            CommunityCardsLabel.ForeColor = System.Drawing.Color.Black;
            CommunityCardsLabel.Location = new System.Drawing.Point(96, 19);
            CommunityCardsLabel.Name = "CommunityCardsLabel";
            CommunityCardsLabel.Size = new System.Drawing.Size(88, 14);
            CommunityCardsLabel.TabIndex = 21;
            CommunityCardsLabel.Text = "Community Cards:";
            // 
            // Player1Label
            // 
            Player1Label.BackColor = System.Drawing.Color.White;
            Player1Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            Player1Label.ForeColor = System.Drawing.Color.Black;
            Player1Label.Location = new System.Drawing.Point(23, 153);
            Player1Label.Name = "Player1Label";
            Player1Label.Size = new System.Drawing.Size(64, 14);
            Player1Label.TabIndex = 22;
            Player1Label.Text = "Hand 1";
            Player1Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player2Label
            // 
            Player2Label.BackColor = System.Drawing.Color.White;
            Player2Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            Player2Label.ForeColor = System.Drawing.Color.Black;
            Player2Label.Location = new System.Drawing.Point(128, 153);
            Player2Label.Name = "Player2Label";
            Player2Label.Size = new System.Drawing.Size(64, 14);
            Player2Label.TabIndex = 24;
            Player2Label.Text = "Hand 2";
            Player2Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player3Label
            // 
            Player3Label.BackColor = System.Drawing.Color.White;
            Player3Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            Player3Label.ForeColor = System.Drawing.Color.Black;
            Player3Label.Location = new System.Drawing.Point(234, 153);
            Player3Label.Name = "Player3Label";
            Player3Label.Size = new System.Drawing.Size(64, 14);
            Player3Label.TabIndex = 26;
            Player3Label.Text = "Hand 3";
            Player3Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player4Label
            // 
            Player4Label.BackColor = System.Drawing.Color.White;
            Player4Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            Player4Label.ForeColor = System.Drawing.Color.Black;
            Player4Label.Location = new System.Drawing.Point(338, 153);
            Player4Label.Name = "Player4Label";
            Player4Label.Size = new System.Drawing.Size(64, 14);
            Player4Label.TabIndex = 28;
            Player4Label.Text = "Hand 4";
            Player4Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // label9
            // 
            label9.BackColor = System.Drawing.Color.Transparent;
            label9.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label9.ForeColor = System.Drawing.Color.RoyalBlue;
            label9.Location = new System.Drawing.Point(242, 305);
            label9.Name = "label9";
            label9.Size = new System.Drawing.Size(49, 16);
            label9.TabIndex = 93;
            label9.Text = "Flush";
            label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label6
            // 
            label6.BackColor = System.Drawing.Color.Transparent;
            label6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label6.ForeColor = System.Drawing.Color.RoyalBlue;
            label6.Location = new System.Drawing.Point(242, 265);
            label6.Name = "label6";
            label6.Size = new System.Drawing.Size(57, 16);
            label6.TabIndex = 89;
            label6.Text = "Straight";
            label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label2
            // 
            label2.BackColor = System.Drawing.Color.Transparent;
            label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label2.ForeColor = System.Drawing.Color.RoyalBlue;
            label2.Location = new System.Drawing.Point(17, 303);
            label2.Name = "label2";
            label2.Size = new System.Drawing.Size(106, 16);
            label2.TabIndex = 85;
            label2.Text = "Three of a kind";
            label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // Exotic1Label
            // 
            Exotic1Label.BackColor = System.Drawing.Color.Transparent;
            Exotic1Label.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            Exotic1Label.ForeColor = System.Drawing.Color.RoyalBlue;
            Exotic1Label.Location = new System.Drawing.Point(17, 266);
            Exotic1Label.Name = "Exotic1Label";
            Exotic1Label.Size = new System.Drawing.Size(113, 17);
            Exotic1Label.TabIndex = 81;
            Exotic1Label.Text = "Two Pairs or worse";
            Exotic1Label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label1
            // 
            label1.BackColor = System.Drawing.Color.Transparent;
            label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label1.ForeColor = System.Drawing.Color.RoyalBlue;
            label1.Location = new System.Drawing.Point(102, 344);
            label1.Name = "label1";
            label1.Size = new System.Drawing.Size(119, 17);
            label1.TabIndex = 97;
            label1.Text = "Full House or better";
            label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // Player1Card1
            // 
            this.Player1Card1.BackColor = System.Drawing.Color.White;
            this.Player1Card1.Image = ((System.Drawing.Image)(resources.GetObject("Player1Card1.Image")));
            this.Player1Card1.Location = new System.Drawing.Point(24, 79);
            this.Player1Card1.Name = "Player1Card1";
            this.Player1Card1.Size = new System.Drawing.Size(30, 35);
            this.Player1Card1.TabIndex = 5;
            this.Player1Card1.TabStop = false;
            // 
            // Player1Card2
            // 
            this.Player1Card2.BackColor = System.Drawing.Color.White;
            this.Player1Card2.Image = ((System.Drawing.Image)(resources.GetObject("Player1Card2.Image")));
            this.Player1Card2.Location = new System.Drawing.Point(56, 79);
            this.Player1Card2.Name = "Player1Card2";
            this.Player1Card2.Size = new System.Drawing.Size(30, 35);
            this.Player1Card2.TabIndex = 6;
            this.Player1Card2.TabStop = false;
            // 
            // Player2Card2
            // 
            this.Player2Card2.BackColor = System.Drawing.Color.White;
            this.Player2Card2.Image = ((System.Drawing.Image)(resources.GetObject("Player2Card2.Image")));
            this.Player2Card2.Location = new System.Drawing.Point(161, 79);
            this.Player2Card2.Name = "Player2Card2";
            this.Player2Card2.Size = new System.Drawing.Size(30, 35);
            this.Player2Card2.TabIndex = 8;
            this.Player2Card2.TabStop = false;
            // 
            // Player2Card1
            // 
            this.Player2Card1.BackColor = System.Drawing.Color.White;
            this.Player2Card1.Image = ((System.Drawing.Image)(resources.GetObject("Player2Card1.Image")));
            this.Player2Card1.Location = new System.Drawing.Point(129, 79);
            this.Player2Card1.Name = "Player2Card1";
            this.Player2Card1.Size = new System.Drawing.Size(30, 35);
            this.Player2Card1.TabIndex = 7;
            this.Player2Card1.TabStop = false;
            // 
            // Player3Card2
            // 
            this.Player3Card2.BackColor = System.Drawing.Color.White;
            this.Player3Card2.Image = ((System.Drawing.Image)(resources.GetObject("Player3Card2.Image")));
            this.Player3Card2.Location = new System.Drawing.Point(266, 79);
            this.Player3Card2.Name = "Player3Card2";
            this.Player3Card2.Size = new System.Drawing.Size(30, 35);
            this.Player3Card2.TabIndex = 10;
            this.Player3Card2.TabStop = false;
            // 
            // Player3Card1
            // 
            this.Player3Card1.BackColor = System.Drawing.Color.White;
            this.Player3Card1.Image = ((System.Drawing.Image)(resources.GetObject("Player3Card1.Image")));
            this.Player3Card1.Location = new System.Drawing.Point(234, 79);
            this.Player3Card1.Name = "Player3Card1";
            this.Player3Card1.Size = new System.Drawing.Size(30, 35);
            this.Player3Card1.TabIndex = 9;
            this.Player3Card1.TabStop = false;
            // 
            // Player4Card2
            // 
            this.Player4Card2.BackColor = System.Drawing.Color.White;
            this.Player4Card2.Image = ((System.Drawing.Image)(resources.GetObject("Player4Card2.Image")));
            this.Player4Card2.Location = new System.Drawing.Point(371, 79);
            this.Player4Card2.Name = "Player4Card2";
            this.Player4Card2.Size = new System.Drawing.Size(30, 35);
            this.Player4Card2.TabIndex = 12;
            this.Player4Card2.TabStop = false;
            // 
            // Player4Card1
            // 
            this.Player4Card1.BackColor = System.Drawing.Color.White;
            this.Player4Card1.Image = ((System.Drawing.Image)(resources.GetObject("Player4Card1.Image")));
            this.Player4Card1.Location = new System.Drawing.Point(339, 79);
            this.Player4Card1.Name = "Player4Card1";
            this.Player4Card1.Size = new System.Drawing.Size(30, 35);
            this.Player4Card1.TabIndex = 11;
            this.Player4Card1.TabStop = false;
            // 
            // GameTitleLabel
            // 
            this.GameTitleLabel.BackColor = System.Drawing.Color.Transparent;
            this.GameTitleLabel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.GameTitleLabel.ForeColor = System.Drawing.Color.Black;
            this.GameTitleLabel.Location = new System.Drawing.Point(96, 4);
            this.GameTitleLabel.Name = "GameTitleLabel";
            this.GameTitleLabel.Size = new System.Drawing.Size(190, 16);
            this.GameTitleLabel.TabIndex = 13;
            this.GameTitleLabel.Text = "Loading Exchange Omaha Hi...";
            // 
            // DealLabel
            // 
            this.DealLabel.BackColor = System.Drawing.Color.Transparent;
            this.DealLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.DealLabel.ForeColor = System.Drawing.Color.Black;
            this.DealLabel.Location = new System.Drawing.Point(331, 6);
            this.DealLabel.Name = "DealLabel";
            this.DealLabel.Size = new System.Drawing.Size(41, 16);
            this.DealLabel.TabIndex = 14;
            this.DealLabel.Text = "Deal";
            this.DealLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // PreFlopLabel
            // 
            this.PreFlopLabel.BackColor = System.Drawing.Color.Transparent;
            this.PreFlopLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.PreFlopLabel.ForeColor = System.Drawing.Color.Black;
            this.PreFlopLabel.Location = new System.Drawing.Point(331, 21);
            this.PreFlopLabel.Name = "PreFlopLabel";
            this.PreFlopLabel.Size = new System.Drawing.Size(55, 11);
            this.PreFlopLabel.TabIndex = 15;
            this.PreFlopLabel.Text = "Preflop";
            this.PreFlopLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // FlopLabel
            // 
            this.FlopLabel.BackColor = System.Drawing.Color.Transparent;
            this.FlopLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FlopLabel.ForeColor = System.Drawing.Color.Black;
            this.FlopLabel.Location = new System.Drawing.Point(331, 36);
            this.FlopLabel.Name = "FlopLabel";
            this.FlopLabel.Size = new System.Drawing.Size(41, 11);
            this.FlopLabel.TabIndex = 16;
            this.FlopLabel.Text = "Flop";
            this.FlopLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // TurnLabel
            // 
            this.TurnLabel.BackColor = System.Drawing.Color.Transparent;
            this.TurnLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.TurnLabel.ForeColor = System.Drawing.Color.Black;
            this.TurnLabel.Location = new System.Drawing.Point(331, 50);
            this.TurnLabel.Name = "TurnLabel";
            this.TurnLabel.Size = new System.Drawing.Size(41, 11);
            this.TurnLabel.TabIndex = 17;
            this.TurnLabel.Text = "Turn";
            this.TurnLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // RiverLabel
            // 
            this.RiverLabel.BackColor = System.Drawing.Color.Transparent;
            this.RiverLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.RiverLabel.ForeColor = System.Drawing.Color.Black;
            this.RiverLabel.Location = new System.Drawing.Point(331, 62);
            this.RiverLabel.Name = "RiverLabel";
            this.RiverLabel.Size = new System.Drawing.Size(41, 11);
            this.RiverLabel.TabIndex = 18;
            this.RiverLabel.Text = "River";
            this.RiverLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // ProgressBar
            // 
            this.ProgressBar.Image = ((System.Drawing.Image)(resources.GetObject("ProgressBar.Image")));
            this.ProgressBar.Location = new System.Drawing.Point(321, 9);
            this.ProgressBar.Name = "ProgressBar";
            this.ProgressBar.Size = new System.Drawing.Size(7, 63);
            this.ProgressBar.TabIndex = 19;
            this.ProgressBar.TabStop = false;
            // 
            // ProgressGrey
            // 
            this.ProgressGrey.Image = ((System.Drawing.Image)(resources.GetObject("ProgressGrey.Image")));
            this.ProgressGrey.Location = new System.Drawing.Point(321, 9);
            this.ProgressGrey.Name = "ProgressGrey";
            this.ProgressGrey.Size = new System.Drawing.Size(7, 0);
            this.ProgressGrey.TabIndex = 20;
            this.ProgressGrey.TabStop = false;
            // 
            // Player1StatusLabel
            // 
            this.Player1StatusLabel.BackColor = System.Drawing.Color.Green;
            this.Player1StatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player1StatusLabel.ForeColor = System.Drawing.Color.White;
            this.Player1StatusLabel.Location = new System.Drawing.Point(23, 168);
            this.Player1StatusLabel.Name = "Player1StatusLabel";
            this.Player1StatusLabel.Size = new System.Drawing.Size(64, 14);
            this.Player1StatusLabel.TabIndex = 23;
            this.Player1StatusLabel.Text = "Active";
            this.Player1StatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player2StatusLabel
            // 
            this.Player2StatusLabel.BackColor = System.Drawing.Color.Green;
            this.Player2StatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player2StatusLabel.ForeColor = System.Drawing.Color.White;
            this.Player2StatusLabel.Location = new System.Drawing.Point(128, 168);
            this.Player2StatusLabel.Name = "Player2StatusLabel";
            this.Player2StatusLabel.Size = new System.Drawing.Size(64, 14);
            this.Player2StatusLabel.TabIndex = 25;
            this.Player2StatusLabel.Text = "Active";
            this.Player2StatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player3StatusLabel
            // 
            this.Player3StatusLabel.BackColor = System.Drawing.Color.Green;
            this.Player3StatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player3StatusLabel.ForeColor = System.Drawing.Color.White;
            this.Player3StatusLabel.Location = new System.Drawing.Point(234, 168);
            this.Player3StatusLabel.Name = "Player3StatusLabel";
            this.Player3StatusLabel.Size = new System.Drawing.Size(64, 14);
            this.Player3StatusLabel.TabIndex = 27;
            this.Player3StatusLabel.Text = "Active";
            this.Player3StatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player4StatusLabel
            // 
            this.Player4StatusLabel.BackColor = System.Drawing.Color.Green;
            this.Player4StatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player4StatusLabel.ForeColor = System.Drawing.Color.White;
            this.Player4StatusLabel.Location = new System.Drawing.Point(338, 168);
            this.Player4StatusLabel.Name = "Player4StatusLabel";
            this.Player4StatusLabel.Size = new System.Drawing.Size(64, 14);
            this.Player4StatusLabel.TabIndex = 29;
            this.Player4StatusLabel.Text = "Active";
            this.Player4StatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // SuspendedLabel
            // 
            this.SuspendedLabel.BackColor = System.Drawing.Color.LightPink;
            this.SuspendedLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.SuspendedLabel.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.SuspendedLabel.ForeColor = System.Drawing.Color.Black;
            this.SuspendedLabel.Location = new System.Drawing.Point(154, 207);
            this.SuspendedLabel.Name = "SuspendedLabel";
            this.SuspendedLabel.Size = new System.Drawing.Size(119, 25);
            this.SuspendedLabel.TabIndex = 30;
            this.SuspendedLabel.Text = "Suspended...";
            this.SuspendedLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.SuspendedLabel.Visible = false;
            // 
            // Player1DescriptionLabel
            // 
            this.Player1DescriptionLabel.BackColor = System.Drawing.Color.Transparent;
            this.Player1DescriptionLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player1DescriptionLabel.ForeColor = System.Drawing.Color.Black;
            this.Player1DescriptionLabel.Location = new System.Drawing.Point(6, 186);
            this.Player1DescriptionLabel.Name = "Player1DescriptionLabel";
            this.Player1DescriptionLabel.Size = new System.Drawing.Size(99, 29);
            this.Player1DescriptionLabel.TabIndex = 41;
            this.Player1DescriptionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player2DescriptionLabel
            // 
            this.Player2DescriptionLabel.BackColor = System.Drawing.Color.Transparent;
            this.Player2DescriptionLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player2DescriptionLabel.ForeColor = System.Drawing.Color.Black;
            this.Player2DescriptionLabel.Location = new System.Drawing.Point(111, 186);
            this.Player2DescriptionLabel.Name = "Player2DescriptionLabel";
            this.Player2DescriptionLabel.Size = new System.Drawing.Size(99, 29);
            this.Player2DescriptionLabel.TabIndex = 42;
            this.Player2DescriptionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player3DescriptionLabel
            // 
            this.Player3DescriptionLabel.BackColor = System.Drawing.Color.Transparent;
            this.Player3DescriptionLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player3DescriptionLabel.ForeColor = System.Drawing.Color.Black;
            this.Player3DescriptionLabel.Location = new System.Drawing.Point(216, 186);
            this.Player3DescriptionLabel.Name = "Player3DescriptionLabel";
            this.Player3DescriptionLabel.Size = new System.Drawing.Size(99, 29);
            this.Player3DescriptionLabel.TabIndex = 43;
            this.Player3DescriptionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player4DescriptionLabel
            // 
            this.Player4DescriptionLabel.BackColor = System.Drawing.Color.Transparent;
            this.Player4DescriptionLabel.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Player4DescriptionLabel.ForeColor = System.Drawing.Color.Black;
            this.Player4DescriptionLabel.Location = new System.Drawing.Point(321, 186);
            this.Player4DescriptionLabel.Name = "Player4DescriptionLabel";
            this.Player4DescriptionLabel.Size = new System.Drawing.Size(99, 29);
            this.Player4DescriptionLabel.TabIndex = 44;
            this.Player4DescriptionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // Player4Card4
            // 
            this.Player4Card4.BackColor = System.Drawing.Color.White;
            this.Player4Card4.Image = ((System.Drawing.Image)(resources.GetObject("Player4Card4.Image")));
            this.Player4Card4.Location = new System.Drawing.Point(371, 115);
            this.Player4Card4.Name = "Player4Card4";
            this.Player4Card4.Size = new System.Drawing.Size(30, 35);
            this.Player4Card4.TabIndex = 52;
            this.Player4Card4.TabStop = false;
            // 
            // Player4Card3
            // 
            this.Player4Card3.BackColor = System.Drawing.Color.White;
            this.Player4Card3.Image = ((System.Drawing.Image)(resources.GetObject("Player4Card3.Image")));
            this.Player4Card3.Location = new System.Drawing.Point(339, 115);
            this.Player4Card3.Name = "Player4Card3";
            this.Player4Card3.Size = new System.Drawing.Size(30, 35);
            this.Player4Card3.TabIndex = 51;
            this.Player4Card3.TabStop = false;
            // 
            // Player3Card4
            // 
            this.Player3Card4.BackColor = System.Drawing.Color.White;
            this.Player3Card4.Image = ((System.Drawing.Image)(resources.GetObject("Player3Card4.Image")));
            this.Player3Card4.Location = new System.Drawing.Point(266, 115);
            this.Player3Card4.Name = "Player3Card4";
            this.Player3Card4.Size = new System.Drawing.Size(30, 35);
            this.Player3Card4.TabIndex = 50;
            this.Player3Card4.TabStop = false;
            // 
            // Player3Card3
            // 
            this.Player3Card3.BackColor = System.Drawing.Color.White;
            this.Player3Card3.Image = ((System.Drawing.Image)(resources.GetObject("Player3Card3.Image")));
            this.Player3Card3.Location = new System.Drawing.Point(234, 115);
            this.Player3Card3.Name = "Player3Card3";
            this.Player3Card3.Size = new System.Drawing.Size(30, 35);
            this.Player3Card3.TabIndex = 49;
            this.Player3Card3.TabStop = false;
            // 
            // Player2Card4
            // 
            this.Player2Card4.BackColor = System.Drawing.Color.White;
            this.Player2Card4.Image = ((System.Drawing.Image)(resources.GetObject("Player2Card4.Image")));
            this.Player2Card4.Location = new System.Drawing.Point(161, 115);
            this.Player2Card4.Name = "Player2Card4";
            this.Player2Card4.Size = new System.Drawing.Size(30, 35);
            this.Player2Card4.TabIndex = 48;
            this.Player2Card4.TabStop = false;
            // 
            // Player2Card3
            // 
            this.Player2Card3.BackColor = System.Drawing.Color.White;
            this.Player2Card3.Image = ((System.Drawing.Image)(resources.GetObject("Player2Card3.Image")));
            this.Player2Card3.Location = new System.Drawing.Point(129, 115);
            this.Player2Card3.Name = "Player2Card3";
            this.Player2Card3.Size = new System.Drawing.Size(30, 35);
            this.Player2Card3.TabIndex = 47;
            this.Player2Card3.TabStop = false;
            // 
            // Player1Card4
            // 
            this.Player1Card4.BackColor = System.Drawing.Color.White;
            this.Player1Card4.Image = ((System.Drawing.Image)(resources.GetObject("Player1Card4.Image")));
            this.Player1Card4.Location = new System.Drawing.Point(56, 115);
            this.Player1Card4.Name = "Player1Card4";
            this.Player1Card4.Size = new System.Drawing.Size(30, 35);
            this.Player1Card4.TabIndex = 46;
            this.Player1Card4.TabStop = false;
            // 
            // Player1Card3
            // 
            this.Player1Card3.BackColor = System.Drawing.Color.White;
            this.Player1Card3.Image = ((System.Drawing.Image)(resources.GetObject("Player1Card3.Image")));
            this.Player1Card3.Location = new System.Drawing.Point(24, 115);
            this.Player1Card3.Name = "Player1Card3";
            this.Player1Card3.Size = new System.Drawing.Size(30, 35);
            this.Player1Card3.TabIndex = 45;
            this.Player1Card3.TabStop = false;
            // 
            // CommunityCard1
            // 
            this.CommunityCard1.BackColor = System.Drawing.Color.White;
            this.CommunityCard1.Image = ((System.Drawing.Image)(resources.GetObject("CommunityCard1.Image")));
            this.CommunityCard1.Location = new System.Drawing.Point(98, 35);
            this.CommunityCard1.Name = "CommunityCard1";
            this.CommunityCard1.Size = new System.Drawing.Size(30, 35);
            this.CommunityCard1.TabIndex = 53;
            this.CommunityCard1.TabStop = false;
            // 
            // CommunityCard2
            // 
            this.CommunityCard2.BackColor = System.Drawing.Color.White;
            this.CommunityCard2.Image = ((System.Drawing.Image)(resources.GetObject("CommunityCard2.Image")));
            this.CommunityCard2.Location = new System.Drawing.Point(135, 35);
            this.CommunityCard2.Name = "CommunityCard2";
            this.CommunityCard2.Size = new System.Drawing.Size(30, 35);
            this.CommunityCard2.TabIndex = 54;
            this.CommunityCard2.TabStop = false;
            // 
            // CommunityCard3
            // 
            this.CommunityCard3.BackColor = System.Drawing.Color.White;
            this.CommunityCard3.Image = ((System.Drawing.Image)(resources.GetObject("CommunityCard3.Image")));
            this.CommunityCard3.Location = new System.Drawing.Point(172, 35);
            this.CommunityCard3.Name = "CommunityCard3";
            this.CommunityCard3.Size = new System.Drawing.Size(30, 35);
            this.CommunityCard3.TabIndex = 55;
            this.CommunityCard3.TabStop = false;
            // 
            // CommunityCard4
            // 
            this.CommunityCard4.BackColor = System.Drawing.Color.White;
            this.CommunityCard4.Image = ((System.Drawing.Image)(resources.GetObject("CommunityCard4.Image")));
            this.CommunityCard4.Location = new System.Drawing.Point(209, 35);
            this.CommunityCard4.Name = "CommunityCard4";
            this.CommunityCard4.Size = new System.Drawing.Size(30, 35);
            this.CommunityCard4.TabIndex = 56;
            this.CommunityCard4.TabStop = false;
            // 
            // CommunityCard5
            // 
            this.CommunityCard5.BackColor = System.Drawing.Color.White;
            this.CommunityCard5.Image = ((System.Drawing.Image)(resources.GetObject("CommunityCard5.Image")));
            this.CommunityCard5.Location = new System.Drawing.Point(246, 35);
            this.CommunityCard5.Name = "CommunityCard5";
            this.CommunityCard5.Size = new System.Drawing.Size(30, 35);
            this.CommunityCard5.TabIndex = 57;
            this.CommunityCard5.TabStop = false;
            // 
            // FlushStatus
            // 
            this.FlushStatus.BackColor = System.Drawing.Color.Green;
            this.FlushStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FlushStatus.ForeColor = System.Drawing.Color.White;
            this.FlushStatus.Location = new System.Drawing.Point(243, 322);
            this.FlushStatus.Name = "FlushStatus";
            this.FlushStatus.Size = new System.Drawing.Size(56, 14);
            this.FlushStatus.TabIndex = 90;
            this.FlushStatus.Text = "Active";
            this.FlushStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // StraightStatus
            // 
            this.StraightStatus.BackColor = System.Drawing.Color.Green;
            this.StraightStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.StraightStatus.ForeColor = System.Drawing.Color.White;
            this.StraightStatus.Location = new System.Drawing.Point(243, 284);
            this.StraightStatus.Name = "StraightStatus";
            this.StraightStatus.Size = new System.Drawing.Size(56, 14);
            this.StraightStatus.TabIndex = 86;
            this.StraightStatus.Text = "Active";
            this.StraightStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // ThreeOfAKindStatus
            // 
            this.ThreeOfAKindStatus.BackColor = System.Drawing.Color.Green;
            this.ThreeOfAKindStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ThreeOfAKindStatus.ForeColor = System.Drawing.Color.White;
            this.ThreeOfAKindStatus.Location = new System.Drawing.Point(19, 319);
            this.ThreeOfAKindStatus.Name = "ThreeOfAKindStatus";
            this.ThreeOfAKindStatus.Size = new System.Drawing.Size(56, 14);
            this.ThreeOfAKindStatus.TabIndex = 82;
            this.ThreeOfAKindStatus.Text = "Active";
            this.ThreeOfAKindStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // TwoPairStatus
            // 
            this.TwoPairStatus.BackColor = System.Drawing.Color.Green;
            this.TwoPairStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.TwoPairStatus.ForeColor = System.Drawing.Color.White;
            this.TwoPairStatus.Location = new System.Drawing.Point(20, 285);
            this.TwoPairStatus.Name = "TwoPairStatus";
            this.TwoPairStatus.Size = new System.Drawing.Size(56, 14);
            this.TwoPairStatus.TabIndex = 78;
            this.TwoPairStatus.Text = "Active";
            this.TwoPairStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // FullHouseStatus
            // 
            this.FullHouseStatus.BackColor = System.Drawing.Color.Green;
            this.FullHouseStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FullHouseStatus.ForeColor = System.Drawing.Color.White;
            this.FullHouseStatus.Location = new System.Drawing.Point(104, 363);
            this.FullHouseStatus.Name = "FullHouseStatus";
            this.FullHouseStatus.Size = new System.Drawing.Size(56, 14);
            this.FullHouseStatus.TabIndex = 94;
            this.FullHouseStatus.Text = "Active";
            this.FullHouseStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // FullHouseLay
            // 
            this.FullHouseLay.Available = 0;
            this.FullHouseLay.Back = false;
            this.FullHouseLay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("FullHouseLay.BackgroundImage")));
            this.FullHouseLay.Cursor = System.Windows.Forms.Cursors.Hand;
            this.FullHouseLay.Eliminated = false;
            this.FullHouseLay.ForeColor = System.Drawing.Color.Black;
            this.FullHouseLay.Location = new System.Drawing.Point(271, 342);
            this.FullHouseLay.MarketID = 0;
            this.FullHouseLay.Name = "FullHouseLay";
            this.FullHouseLay.Price = 0;
            this.FullHouseLay.Size = new System.Drawing.Size(50, 35);
            this.FullHouseLay.TabIndex = 96;
            this.FullHouseLay.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // FullHouseBack
            // 
            this.FullHouseBack.Available = 0;
            this.FullHouseBack.Back = true;
            this.FullHouseBack.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("FullHouseBack.BackgroundImage")));
            this.FullHouseBack.Cursor = System.Windows.Forms.Cursors.Hand;
            this.FullHouseBack.Eliminated = false;
            this.FullHouseBack.ForeColor = System.Drawing.Color.Black;
            this.FullHouseBack.Location = new System.Drawing.Point(223, 342);
            this.FullHouseBack.MarketID = 0;
            this.FullHouseBack.Name = "FullHouseBack";
            this.FullHouseBack.Price = 0;
            this.FullHouseBack.Size = new System.Drawing.Size(50, 35);
            this.FullHouseBack.TabIndex = 95;
            this.FullHouseBack.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // FlushLay
            // 
            this.FlushLay.Available = 0;
            this.FlushLay.Back = false;
            this.FlushLay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("FlushLay.BackgroundImage")));
            this.FlushLay.Cursor = System.Windows.Forms.Cursors.Hand;
            this.FlushLay.Eliminated = false;
            this.FlushLay.ForeColor = System.Drawing.Color.Black;
            this.FlushLay.Location = new System.Drawing.Point(354, 301);
            this.FlushLay.MarketID = 0;
            this.FlushLay.Name = "FlushLay";
            this.FlushLay.Price = 0;
            this.FlushLay.Size = new System.Drawing.Size(50, 35);
            this.FlushLay.TabIndex = 92;
            this.FlushLay.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // FlushBack
            // 
            this.FlushBack.Available = 0;
            this.FlushBack.Back = true;
            this.FlushBack.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("FlushBack.BackgroundImage")));
            this.FlushBack.Cursor = System.Windows.Forms.Cursors.Hand;
            this.FlushBack.Eliminated = false;
            this.FlushBack.ForeColor = System.Drawing.Color.Black;
            this.FlushBack.Location = new System.Drawing.Point(305, 301);
            this.FlushBack.MarketID = 0;
            this.FlushBack.Name = "FlushBack";
            this.FlushBack.Price = 0;
            this.FlushBack.Size = new System.Drawing.Size(50, 35);
            this.FlushBack.TabIndex = 91;
            this.FlushBack.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // StraightLay
            // 
            this.StraightLay.Available = 0;
            this.StraightLay.Back = false;
            this.StraightLay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("StraightLay.BackgroundImage")));
            this.StraightLay.Cursor = System.Windows.Forms.Cursors.Hand;
            this.StraightLay.Eliminated = false;
            this.StraightLay.ForeColor = System.Drawing.Color.Black;
            this.StraightLay.Location = new System.Drawing.Point(354, 264);
            this.StraightLay.MarketID = 0;
            this.StraightLay.Name = "StraightLay";
            this.StraightLay.Price = 0;
            this.StraightLay.Size = new System.Drawing.Size(50, 35);
            this.StraightLay.TabIndex = 88;
            this.StraightLay.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // StraightBack
            // 
            this.StraightBack.Available = 0;
            this.StraightBack.Back = true;
            this.StraightBack.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("StraightBack.BackgroundImage")));
            this.StraightBack.Cursor = System.Windows.Forms.Cursors.Hand;
            this.StraightBack.Eliminated = false;
            this.StraightBack.ForeColor = System.Drawing.Color.Black;
            this.StraightBack.Location = new System.Drawing.Point(305, 264);
            this.StraightBack.MarketID = 0;
            this.StraightBack.Name = "StraightBack";
            this.StraightBack.Price = 0;
            this.StraightBack.Size = new System.Drawing.Size(50, 35);
            this.StraightBack.TabIndex = 87;
            this.StraightBack.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // ThreeOfAKindLay
            // 
            this.ThreeOfAKindLay.Available = 0;
            this.ThreeOfAKindLay.Back = false;
            this.ThreeOfAKindLay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ThreeOfAKindLay.BackgroundImage")));
            this.ThreeOfAKindLay.Cursor = System.Windows.Forms.Cursors.Hand;
            this.ThreeOfAKindLay.Eliminated = false;
            this.ThreeOfAKindLay.ForeColor = System.Drawing.Color.Black;
            this.ThreeOfAKindLay.Location = new System.Drawing.Point(178, 301);
            this.ThreeOfAKindLay.MarketID = 0;
            this.ThreeOfAKindLay.Name = "ThreeOfAKindLay";
            this.ThreeOfAKindLay.Price = 0;
            this.ThreeOfAKindLay.Size = new System.Drawing.Size(50, 35);
            this.ThreeOfAKindLay.TabIndex = 84;
            this.ThreeOfAKindLay.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // ThreeOfAKindBack
            // 
            this.ThreeOfAKindBack.Available = 0;
            this.ThreeOfAKindBack.Back = true;
            this.ThreeOfAKindBack.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ThreeOfAKindBack.BackgroundImage")));
            this.ThreeOfAKindBack.Cursor = System.Windows.Forms.Cursors.Hand;
            this.ThreeOfAKindBack.Eliminated = false;
            this.ThreeOfAKindBack.ForeColor = System.Drawing.Color.Black;
            this.ThreeOfAKindBack.Location = new System.Drawing.Point(130, 301);
            this.ThreeOfAKindBack.MarketID = 0;
            this.ThreeOfAKindBack.Name = "ThreeOfAKindBack";
            this.ThreeOfAKindBack.Price = 0;
            this.ThreeOfAKindBack.Size = new System.Drawing.Size(50, 35);
            this.ThreeOfAKindBack.TabIndex = 83;
            this.ThreeOfAKindBack.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // TwoPairLay
            // 
            this.TwoPairLay.Available = 0;
            this.TwoPairLay.Back = false;
            this.TwoPairLay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("TwoPairLay.BackgroundImage")));
            this.TwoPairLay.Cursor = System.Windows.Forms.Cursors.Hand;
            this.TwoPairLay.Eliminated = false;
            this.TwoPairLay.ForeColor = System.Drawing.Color.Black;
            this.TwoPairLay.Location = new System.Drawing.Point(178, 264);
            this.TwoPairLay.MarketID = 0;
            this.TwoPairLay.Name = "TwoPairLay";
            this.TwoPairLay.Price = 0;
            this.TwoPairLay.Size = new System.Drawing.Size(50, 35);
            this.TwoPairLay.TabIndex = 80;
            this.TwoPairLay.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // TwoPairBack
            // 
            this.TwoPairBack.Available = 0;
            this.TwoPairBack.Back = true;
            this.TwoPairBack.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("TwoPairBack.BackgroundImage")));
            this.TwoPairBack.Cursor = System.Windows.Forms.Cursors.Hand;
            this.TwoPairBack.Eliminated = false;
            this.TwoPairBack.ForeColor = System.Drawing.Color.Black;
            this.TwoPairBack.Location = new System.Drawing.Point(130, 264);
            this.TwoPairBack.MarketID = 0;
            this.TwoPairBack.Name = "TwoPairBack";
            this.TwoPairBack.Price = 0;
            this.TwoPairBack.Size = new System.Drawing.Size(50, 35);
            this.TwoPairBack.TabIndex = 79;
            this.TwoPairBack.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player4LayPrice
            // 
            this.Player4LayPrice.Available = 0;
            this.Player4LayPrice.Back = false;
            this.Player4LayPrice.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player4LayPrice.BackgroundImage")));
            this.Player4LayPrice.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player4LayPrice.Eliminated = false;
            this.Player4LayPrice.ForeColor = System.Drawing.Color.Black;
            this.Player4LayPrice.Location = new System.Drawing.Point(370, 216);
            this.Player4LayPrice.MarketID = 0;
            this.Player4LayPrice.Name = "Player4LayPrice";
            this.Player4LayPrice.Price = 0;
            this.Player4LayPrice.Size = new System.Drawing.Size(50, 35);
            this.Player4LayPrice.TabIndex = 38;
            this.Player4LayPrice.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player3LayPrice
            // 
            this.Player3LayPrice.Available = 0;
            this.Player3LayPrice.Back = false;
            this.Player3LayPrice.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player3LayPrice.BackgroundImage")));
            this.Player3LayPrice.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player3LayPrice.Eliminated = false;
            this.Player3LayPrice.ForeColor = System.Drawing.Color.Black;
            this.Player3LayPrice.Location = new System.Drawing.Point(265, 216);
            this.Player3LayPrice.MarketID = 0;
            this.Player3LayPrice.Name = "Player3LayPrice";
            this.Player3LayPrice.Price = 0;
            this.Player3LayPrice.Size = new System.Drawing.Size(50, 35);
            this.Player3LayPrice.TabIndex = 37;
            this.Player3LayPrice.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player2LayPrice
            // 
            this.Player2LayPrice.Available = 0;
            this.Player2LayPrice.Back = false;
            this.Player2LayPrice.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player2LayPrice.BackgroundImage")));
            this.Player2LayPrice.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player2LayPrice.Eliminated = false;
            this.Player2LayPrice.ForeColor = System.Drawing.Color.Black;
            this.Player2LayPrice.Location = new System.Drawing.Point(160, 216);
            this.Player2LayPrice.MarketID = 0;
            this.Player2LayPrice.Name = "Player2LayPrice";
            this.Player2LayPrice.Price = 0;
            this.Player2LayPrice.Size = new System.Drawing.Size(50, 35);
            this.Player2LayPrice.TabIndex = 36;
            this.Player2LayPrice.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player1LayPrice
            // 
            this.Player1LayPrice.Available = 0;
            this.Player1LayPrice.Back = false;
            this.Player1LayPrice.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player1LayPrice.BackgroundImage")));
            this.Player1LayPrice.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player1LayPrice.Eliminated = false;
            this.Player1LayPrice.ForeColor = System.Drawing.Color.Black;
            this.Player1LayPrice.Location = new System.Drawing.Point(55, 216);
            this.Player1LayPrice.MarketID = 0;
            this.Player1LayPrice.Name = "Player1LayPrice";
            this.Player1LayPrice.Price = 0;
            this.Player1LayPrice.Size = new System.Drawing.Size(50, 35);
            this.Player1LayPrice.TabIndex = 35;
            this.Player1LayPrice.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player4Price
            // 
            this.Player4Price.Available = 0;
            this.Player4Price.Back = true;
            this.Player4Price.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player4Price.BackgroundImage")));
            this.Player4Price.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player4Price.Eliminated = false;
            this.Player4Price.ForeColor = System.Drawing.Color.Black;
            this.Player4Price.Location = new System.Drawing.Point(321, 216);
            this.Player4Price.MarketID = 0;
            this.Player4Price.Name = "Player4Price";
            this.Player4Price.Price = 0;
            this.Player4Price.Size = new System.Drawing.Size(50, 35);
            this.Player4Price.TabIndex = 34;
            this.Player4Price.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player3Price
            // 
            this.Player3Price.Available = 0;
            this.Player3Price.Back = true;
            this.Player3Price.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player3Price.BackgroundImage")));
            this.Player3Price.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player3Price.Eliminated = false;
            this.Player3Price.ForeColor = System.Drawing.Color.Black;
            this.Player3Price.Location = new System.Drawing.Point(216, 216);
            this.Player3Price.MarketID = 0;
            this.Player3Price.Name = "Player3Price";
            this.Player3Price.Price = 0;
            this.Player3Price.Size = new System.Drawing.Size(50, 35);
            this.Player3Price.TabIndex = 33;
            this.Player3Price.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player2Price
            // 
            this.Player2Price.Available = 0;
            this.Player2Price.Back = true;
            this.Player2Price.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player2Price.BackgroundImage")));
            this.Player2Price.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player2Price.Eliminated = false;
            this.Player2Price.ForeColor = System.Drawing.Color.Black;
            this.Player2Price.Location = new System.Drawing.Point(111, 216);
            this.Player2Price.MarketID = 0;
            this.Player2Price.Name = "Player2Price";
            this.Player2Price.Price = 0;
            this.Player2Price.Size = new System.Drawing.Size(50, 35);
            this.Player2Price.TabIndex = 32;
            this.Player2Price.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // Player1Price
            // 
            this.Player1Price.Available = 0;
            this.Player1Price.Back = true;
            this.Player1Price.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Player1Price.BackgroundImage")));
            this.Player1Price.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Player1Price.Eliminated = false;
            this.Player1Price.ForeColor = System.Drawing.Color.Black;
            this.Player1Price.Location = new System.Drawing.Point(6, 216);
            this.Player1Price.MarketID = 0;
            this.Player1Price.Name = "Player1Price";
            this.Player1Price.Price = 0;
            this.Player1Price.Size = new System.Drawing.Size(50, 35);
            this.Player1Price.TabIndex = 31;
            this.Player1Price.Click += new System.EventHandler(this.SelectionClicked);
            // 
            // OmahaView
            // 
            this.BackColor = System.Drawing.SystemColors.Control;
            this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            this.Controls.Add(label1);
            this.Controls.Add(this.FullHouseLay);
            this.Controls.Add(this.FullHouseBack);
            this.Controls.Add(this.FullHouseStatus);
            this.Controls.Add(label9);
            this.Controls.Add(this.FlushLay);
            this.Controls.Add(this.FlushBack);
            this.Controls.Add(this.FlushStatus);
            this.Controls.Add(label6);
            this.Controls.Add(this.StraightLay);
            this.Controls.Add(this.StraightBack);
            this.Controls.Add(this.StraightStatus);
            this.Controls.Add(label2);
            this.Controls.Add(this.ThreeOfAKindLay);
            this.Controls.Add(this.ThreeOfAKindBack);
            this.Controls.Add(this.ThreeOfAKindStatus);
            this.Controls.Add(Exotic1Label);
            this.Controls.Add(this.TwoPairLay);
            this.Controls.Add(this.TwoPairBack);
            this.Controls.Add(this.TwoPairStatus);
            this.Controls.Add(this.CommunityCard5);
            this.Controls.Add(this.CommunityCard4);
            this.Controls.Add(this.CommunityCard3);
            this.Controls.Add(this.CommunityCard2);
            this.Controls.Add(this.CommunityCard1);
            this.Controls.Add(this.Player4Card4);
            this.Controls.Add(this.Player4Card3);
            this.Controls.Add(this.Player3Card4);
            this.Controls.Add(this.Player3Card3);
            this.Controls.Add(this.Player2Card4);
            this.Controls.Add(this.Player2Card3);
            this.Controls.Add(this.Player1Card4);
            this.Controls.Add(this.Player1Card3);
            this.Controls.Add(this.SuspendedLabel);
            this.Controls.Add(this.Player4LayPrice);
            this.Controls.Add(this.Player3LayPrice);
            this.Controls.Add(this.Player2LayPrice);
            this.Controls.Add(this.Player1LayPrice);
            this.Controls.Add(this.Player4Price);
            this.Controls.Add(this.Player3Price);
            this.Controls.Add(this.Player2Price);
            this.Controls.Add(this.Player1Price);
            this.Controls.Add(this.Player4StatusLabel);
            this.Controls.Add(Player4Label);
            this.Controls.Add(this.Player3StatusLabel);
            this.Controls.Add(Player3Label);
            this.Controls.Add(this.Player2StatusLabel);
            this.Controls.Add(Player2Label);
            this.Controls.Add(this.Player1StatusLabel);
            this.Controls.Add(Player1Label);
            this.Controls.Add(CommunityCardsLabel);
            this.Controls.Add(this.ProgressGrey);
            this.Controls.Add(this.ProgressBar);
            this.Controls.Add(this.RiverLabel);
            this.Controls.Add(this.TurnLabel);
            this.Controls.Add(this.FlopLabel);
            this.Controls.Add(this.PreFlopLabel);
            this.Controls.Add(this.DealLabel);
            this.Controls.Add(this.GameTitleLabel);
            this.Controls.Add(this.Player4Card2);
            this.Controls.Add(this.Player4Card1);
            this.Controls.Add(this.Player3Card2);
            this.Controls.Add(this.Player3Card1);
            this.Controls.Add(this.Player2Card2);
            this.Controls.Add(this.Player2Card1);
            this.Controls.Add(this.Player1Card2);
            this.Controls.Add(this.Player1Card1);
            this.Controls.Add(this.Player4DescriptionLabel);
            this.Controls.Add(this.Player3DescriptionLabel);
            this.Controls.Add(this.Player2DescriptionLabel);
            this.Controls.Add(this.Player1DescriptionLabel);
            this.Location = new System.Drawing.Point(-1, 40);
            this.Name = "OmahaView";
            this.Size = new System.Drawing.Size(426, 391);
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ProgressBar)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ProgressGrey)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player4Card3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player3Card3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player2Card3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Player1Card3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.CommunityCard5)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion

        /// <summary>
        /// Updates all the game data in the panel
        /// </summary>
        public channelSnapshot CurrentChannelSnapshot
        {
            get
            {
                return channelSnapshot;
            }
            set
            {
                channelSnapshot = value;
                _UpdateDisplay();
            }
        }

        /// <summary>
        /// Redraw view
        /// </summary>
		private void _UpdateDisplay() 
		{
            // make things easier by referencing all the objects we need
            gameData = channelSnapshot.channel.game.gameData;
            market = channelSnapshot.channel.game.markets.market[0];
            secondaryMarket = channelSnapshot.channel.game.markets.market[1];

            if (market.selections.selection == null)
            {
                return;
            }

            player1Selection = market.selections.selection[0];
            player2Selection = market.selections.selection[1];
            player3Selection = market.selections.selection[2];
            player4Selection = market.selections.selection[3];

            twoPairsOrWorse = secondaryMarket.selections.selection[4];
            threeOfAKind = secondaryMarket.selections.selection[3];
            straight = secondaryMarket.selections.selection[2];
            flush = secondaryMarket.selections.selection[1];
            fullHouseOrBetter = secondaryMarket.selections.selection[0];

            // only do some updates once
            if (roundId != channelSnapshot.channel.game.round)
            {
                _PaintGameInfoOnce();
                _PaintCardsOnce();
                _PaintMarketDataOnce();
            }

            if (channelSnapshot.channel.game.markets.market[0].status == marketStatusEnum.ACTIVE)
            {
                roundId = channelSnapshot.channel.game.round;
            }

            UpdateProgressBar(channelSnapshot, ProgressGrey, ProgressBar);
            _PaintMarketData();
		}

        /// <summary>
        /// Game info to paint once per round
        /// </summary>
        private void _PaintGameInfoOnce()
        {
            // set title
            GameTitleLabel.Text = channelSnapshot.channel.name;

            // set round
            _SetRound();
        }

        /// <summary>
        /// Card info to paint once
        /// </summary>
        private void _PaintCardsOnce()
        {
            Player1Card1.Image = GetCardResourceImage(gameData[0].property[0].value, false);
            Player1Card2.Image = GetCardResourceImage(gameData[0].property[1].value, false);
            Player1Card3.Image = GetCardResourceImage(gameData[0].property[2].value, false);
            Player1Card4.Image = GetCardResourceImage(gameData[0].property[3].value, false);

            Player2Card1.Image = GetCardResourceImage(gameData[1].property[0].value, false);
            Player2Card2.Image = GetCardResourceImage(gameData[1].property[1].value, false);
            Player2Card3.Image = GetCardResourceImage(gameData[1].property[2].value, false);
            Player2Card4.Image = GetCardResourceImage(gameData[1].property[3].value, false);

            Player3Card1.Image = GetCardResourceImage(gameData[2].property[0].value, false);
            Player3Card2.Image = GetCardResourceImage(gameData[2].property[1].value, false);
            Player3Card3.Image = GetCardResourceImage(gameData[2].property[2].value, false);
            Player3Card4.Image = GetCardResourceImage(gameData[2].property[3].value, false);

            Player4Card1.Image = GetCardResourceImage(gameData[3].property[0].value, false);
            Player4Card2.Image = GetCardResourceImage(gameData[3].property[1].value, false);
            Player4Card3.Image = GetCardResourceImage(gameData[3].property[2].value, false);
            Player4Card4.Image = GetCardResourceImage(gameData[3].property[3].value, false);

            gameDataObject community = gameData[4];
            CommunityCard1.Image = GetCardResourceImage(community.property[0].value, false);
            CommunityCard2.Image = GetCardResourceImage(community.property[1].value, false);
            CommunityCard3.Image = GetCardResourceImage(community.property[2].value, false);
            CommunityCard4.Image = GetCardResourceImage(community.property[3].value, false);
            CommunityCard5.Image = GetCardResourceImage(community.property[4].value, false);
        }

        /// <summary>
        /// Paint market data once for round
        /// </summary>
        private void _PaintMarketDataOnce()
        {
            // update selection status
            SetPlayerStatus(player1Selection.status, Player1StatusLabel, Player1Price, Player1LayPrice);
            SetPlayerStatus(player2Selection.status, Player2StatusLabel, Player2Price, Player2LayPrice);
            SetPlayerStatus(player3Selection.status, Player3StatusLabel, Player3Price, Player3LayPrice);
            SetPlayerStatus(player4Selection.status, Player4StatusLabel, Player4Price, Player4LayPrice);

            // update description text
            SetPlayerDescription(gameData[0].description, Player1DescriptionLabel);
            SetPlayerDescription(gameData[1].description, Player2DescriptionLabel);
            SetPlayerDescription(gameData[2].description, Player3DescriptionLabel);
            SetPlayerDescription(gameData[3].description, Player4DescriptionLabel);

            SetPlayerStatus(twoPairsOrWorse.status, TwoPairStatus, TwoPairBack, TwoPairLay);
            SetPlayerStatus(threeOfAKind.status, ThreeOfAKindStatus, ThreeOfAKindBack, ThreeOfAKindLay);
            SetPlayerStatus(straight.status, StraightStatus, StraightBack, StraightLay);
            SetPlayerStatus(flush.status, FlushStatus, FlushBack, FlushLay);
            SetPlayerStatus(fullHouseOrBetter.status, FullHouseStatus, FullHouseBack, FullHouseLay);
        }

        /// <summary>
        /// Paint market data on every update
        /// </summary>
        private void _PaintMarketData()
        {
            // Check if the market is active. If not then we need to clear all the bets
            if (market.status != marketStatusEnum.ACTIVE)
            {
                ClearBets();
                _ToggleBetLayPanels(false);

                if (SuspendedLabel.Visible == false)
                {
                    SuspendedLabel.Show();
                }
            }
            else
            {
                if (SuspendedLabel.Visible == true)
                {
                    SuspendedLabel.Hide();
                }

                _ToggleBetLayPanels(true);

                // update prices and money
                if (player1Selection.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(Player1Price, market.id, player1Selection);
                    SetOddsPanel(Player1LayPrice, market.id, player1Selection);
                }

                if (player2Selection.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(Player2Price, market.id, player2Selection);
                    SetOddsPanel(Player2LayPrice, market.id, player2Selection);
                }

                if (player3Selection.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(Player3Price, market.id, player3Selection);
                    SetOddsPanel(Player3LayPrice, market.id, player3Selection);
                }

                if (player4Selection.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(Player4Price, market.id, player4Selection);
                    SetOddsPanel(Player4LayPrice, market.id, player4Selection);
                }

                if (twoPairsOrWorse.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(TwoPairBack, secondaryMarket.id, twoPairsOrWorse);
                    SetOddsPanel(TwoPairLay, secondaryMarket.id, twoPairsOrWorse);
                }

                if (threeOfAKind.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(ThreeOfAKindBack, secondaryMarket.id, threeOfAKind);
                    SetOddsPanel(ThreeOfAKindLay, secondaryMarket.id, threeOfAKind);
                }

                if (straight.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(StraightBack, secondaryMarket.id, straight);
                    SetOddsPanel(StraightLay, secondaryMarket.id, straight);
                }

                if (flush.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(FlushBack, secondaryMarket.id, flush);
                    SetOddsPanel(FlushLay, secondaryMarket.id, flush);
                }

                if (fullHouseOrBetter.status == selectionStatusEnum.IN_PLAY)
                {
                    SetOddsPanel(FullHouseBack, secondaryMarket.id, fullHouseOrBetter);
                    SetOddsPanel(FullHouseLay, secondaryMarket.id, fullHouseOrBetter);
                }
            }
        }

		/// <summary>
		/// Enables or disables the buttons allowing bets to be placed
		/// </summary>
		/// <param name="enabled"></param>
		private void _ToggleBetLayPanels(bool enabled)
		{
            // remove the price and available if we are disabling the panel
            if (enabled == false)
            {
                Player1Price.Clear();
                Player1LayPrice.Clear();

                Player2Price.Clear();
                Player2LayPrice.Clear();

                Player3Price.Clear();
                Player3LayPrice.Clear();

                Player4Price.Clear();
                Player4LayPrice.Clear();

                TwoPairBack.Clear();
                TwoPairLay.Clear();

                ThreeOfAKindBack.Clear();
                ThreeOfAKindLay.Clear();

                StraightBack.Clear();
                StraightLay.Clear();

                FlushBack.Clear();
                FlushLay.Clear();

                FullHouseBack.Clear();
                FullHouseLay.Clear();
            }

            Player1Price.Enabled = enabled;
            Player1LayPrice.Enabled = enabled;
            Player2Price.Enabled = enabled;
            Player2LayPrice.Enabled = enabled;
            Player3Price.Enabled = enabled;
            Player3LayPrice.Enabled = enabled;
            Player4Price.Enabled = enabled;
            Player4LayPrice.Enabled = enabled;
            TwoPairBack.Enabled = enabled;
            TwoPairLay.Enabled = enabled;
            ThreeOfAKindBack.Enabled = enabled;
            ThreeOfAKindLay.Enabled = enabled;
            StraightBack.Enabled = enabled;
            StraightLay.Enabled = enabled;
            FlushBack.Enabled = enabled;
            FlushLay.Enabled = enabled;
            FullHouseBack.Enabled = enabled;
            FullHouseLay.Enabled = enabled;
        }

        private void _SetRound()
        {
            DealLabel.Font = fn;
            PreFlopLabel.Font = fn;
            FlopLabel.Font = fn;
            TurnLabel.Font = fn;
            RiverLabel.Font = fn;

            switch (channelSnapshot.channel.game.round)
            {
                case 1:
                    DealLabel.Font = fb;
                    break;
                case 2:
                    PreFlopLabel.Font = fb;
                    break;
                case 3:
                    FlopLabel.Font = fb;
                    break;
                case 4:
                    TurnLabel.Font = fb;
                    break;
                case 5:
                    RiverLabel.Font = fb;
                    break;
            }
        }

        private void SelectionClicked(object sender, System.EventArgs e)
        {
            SelectionClicked(ShowBetPlacement, sender, channelSnapshot, m_Parent.Account);
        }

        /// <summary>
        /// Raises the onClearBets event
        /// </summary>
        private void OnClearBets()
        {
            if (ClearBets != null)
            {
                ClearBets();
            }
        }
	}
}
