free vb.net barcode library THE POKER ENGINE LISTINGS in C#

Make Data Matrix ECC200 in C# THE POKER ENGINE LISTINGS

APPENDIX B
Painting Data Matrix In Visual C#.NET
Using Barcode generator for Visual Studio .NET Control to generate, create ECC200 image in .NET applications.
www.OnBarcode.com
ECC200 Decoder In C#
Using Barcode decoder for .NET framework Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
THE POKER ENGINE LISTINGS
Painting GTIN - 13 In Visual C#.NET
Using Barcode generator for Visual Studio .NET Control to generate, create European Article Number 13 image in .NET framework applications.
www.OnBarcode.com
Barcode Generator In C#
Using Barcode generator for VS .NET Control to generate, create Barcode image in VS .NET applications.
www.OnBarcode.com
The WinPok.cs listing
PDF417 Encoder In C#
Using Barcode creator for .NET framework Control to generate, create PDF-417 2d barcode image in .NET applications.
www.OnBarcode.com
Making 1D Barcode In Visual C#.NET
Using Barcode creation for .NET Control to generate, create Linear image in .NET applications.
www.OnBarcode.com
// file : WinPok.cs // compile : csc /r:poker.dll // /t:winexe // /win32icon:poker.ico // winpok.cs namespace Poker { using using using using using using System; System.Runtime.InteropServices; // for API MessageBeep System.Windows.Forms; System.Threading; System.Drawing; System.ComponentModel;
Data Matrix 2d Barcode Generator In Visual C#.NET
Using Barcode maker for .NET Control to generate, create ECC200 image in .NET framework applications.
www.OnBarcode.com
Making USD-3 In C#
Using Barcode drawer for .NET framework Control to generate, create USS-93 image in Visual Studio .NET applications.
www.OnBarcode.com
public class WinPokForm : Form { public static void Main() { // start the Windows message loop... Application.Run(new WinPokForm()); } public WinPokForm() { initUI(); // create GUI controls newGame(); // init poker machine, user credits, etc. } private void initUI() { initForm(); initMenu(); initStartOverButton(); initCredits();
DataMatrix Encoder In None
Using Barcode encoder for Online Control to generate, create Data Matrix 2d barcode image in Online applications.
www.OnBarcode.com
Encode ECC200 In .NET Framework
Using Barcode generator for Visual Studio .NET Control to generate, create Data Matrix ECC200 image in VS .NET applications.
www.OnBarcode.com
initMessage(); initBet(); initHoldCheckBoxes(); initDealDrawButton(); initPayoutTable(); initMachineStats(); initStatusBar(); initCards(); } private void initForm() { // initialize the form... // set title bar... Text = ".NET Video Poker
Barcode Printer In VB.NET
Using Barcode creator for VS .NET Control to generate, create Barcode image in VS .NET applications.
www.OnBarcode.com
Drawing Data Matrix In Java
Using Barcode drawer for Java Control to generate, create Data Matrix 2d barcode image in Java applications.
www.OnBarcode.com
The Windows Forms Version";
QR Decoder In Java
Using Barcode reader for Java Control to read, scan read, scan image in Java applications.
www.OnBarcode.com
Drawing Barcode In None
Using Barcode generation for Font Control to generate, create Barcode image in Font applications.
www.OnBarcode.com
// set form height and width... Height = 510; Width= 445; // center form and disallow resizing... CenterToScreen(); MaximizeBox = false; FormBorderStyle = FormBorderStyle.FixedDialog; // set the form icon... Icon = getIcon("poker"); } private void initMenu() { // initialize the menu... // create the form's main menu... Menu = new MainMenu(); // create the File menu... MenuItem fileMenuItem = Menu.MenuItems.Add("&File"); startOverMenuItem = new MenuItem( "&Start Over", new EventHandler(startOverHandler), Shortcut.CtrlS); fileMenuItem.MenuItems.Add(startOverMenuItem); MenuItem quitMenuItem = new MenuItem( "&Quit", new EventHandler(quitHandler), Shortcut.CtrlQ); fileMenuItem.MenuItems.Add(quitMenuItem); // create the Help menu... MenuItem helpMenuItem = Menu.MenuItems.Add("&Help"); MenuItem aboutMenuItem = new MenuItem( "&About", new EventHandler(aboutHandler), Shortcut.CtrlA);
Painting Code-39 In Visual Basic .NET
Using Barcode printer for .NET Control to generate, create Code 39 Full ASCII image in Visual Studio .NET applications.
www.OnBarcode.com
Code-128 Drawer In Java
Using Barcode creator for Java Control to generate, create ANSI/AIM Code 128 image in Java applications.
www.OnBarcode.com
APPENDIX C
ECC200 Maker In None
Using Barcode drawer for Microsoft Excel Control to generate, create Data Matrix image in Microsoft Excel applications.
www.OnBarcode.com
ECC200 Encoder In Java
Using Barcode creator for Java Control to generate, create Data Matrix 2d barcode image in Java applications.
www.OnBarcode.com
THE WINPOK.CS LISTING
EAN 128 Drawer In None
Using Barcode printer for Microsoft Excel Control to generate, create UCC-128 image in Office Excel applications.
www.OnBarcode.com
ECC200 Creation In Java
Using Barcode drawer for Eclipse BIRT Control to generate, create DataMatrix image in BIRT reports applications.
www.OnBarcode.com
helpMenuItem.MenuItems.Add(aboutMenuItem); } private void initStartOverButton() { startOverButton = new Button(); startOverButton.Location = new Point(8, 8); startOverButton.Size = new Size(424, 24); startOverButton.Text = "&Start Over"; startOverButton.Font = new Font("Verdana", 10f, FontStyle.Bold); startOverButton.Click += new EventHandler(startOverHandler); Controls.Add(startOverButton); } private void initCredits() { // display how many credits remaining... Label l = new Label(); l.Location = new Point(8, 40); l.Text = "CREDITS"; l.Size = new Size(88, 24); l.Font = new Font("Verdana", 10f, FontStyle.Bold); l.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(l); creditsLabel = new Label(); creditsLabel.Location = new Point(18, 64); creditsLabel.Size = new Size(60, 24); creditsLabel.Font = new Font("Verdana", 10f, FontStyle.Bold); creditsLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; creditsLabel.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(creditsLabel); } private void initMessage() { Label l = new Label(); l.Text = ".NET Video Poker"; l.Font = new Font("Verdana", 10f, FontStyle.Bold); l.Location = new Point(104, 40); l.Size = new Size(232, 24); l.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(l); // message to the player... messageLabel = new Label(); messageLabel.Font = new Font("Verdana",10f, FontStyle.Bold); messageLabel.Location = new Point(104, 64); messageLabel.Size = new Size(232, 24); messageLabel.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(messageLabel); }
private void initBet() { Label l = new Label(); l.Text = "BET"; l.Location = new Point(344, 40); l.Size = new Size(88, 24); l.Font = new Font("Verdana",10f, FontStyle.Bold); l.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(l); betTextBox = new TextBox(); betTextBox.Location = new Point(368, 64); betTextBox.MaxLength = 1; betTextBox.Font = new Font("Verdana",10f, FontStyle.Bold); betTextBox.Size = new Size(32, 22); betTextBox.TextAlign = HorizontalAlignment.Center; betTextBox.TabStop = false; betTextBox.TextChanged += new EventHandler(betChangedHandler); Controls.Add(betTextBox); } private void initCards() { card1 = new PictureBox(); card1.Location = new Point(8, 104); card1.Size = new Size(72, 96); Controls.Add(card1); card2 = new PictureBox(); card2.Location = new Point(96, 104); card2.Size = new Size(72, 96); Controls.Add(card2); card3 = new PictureBox(); card3.Location = new Point(184, 104); card3.Size = new Size(72, 96); Controls.Add(card3); card4 = new PictureBox(); card4.Location = new Point(272, 104); card4.Size = new Size(72, 96); Controls.Add(card4); card5 = new PictureBox(); card5.Location = new Point(360, 104); card5.Size = new Size(72, 96); Controls.Add(card5); } private void initHoldCheckBoxes() { // init hold CheckBoxes... hold1 = new CheckBox(); hold1.Location = new Point(12, 208); hold2 = new CheckBox();
APPENDIX C
THE WINPOK.CS LISTING
hold2.Location = new Point(100, 208); hold3 = new CheckBox(); hold3.Location = new Point(188, 208); hold4 = new CheckBox(); hold4.Location = new Point(276, 208); hold5 = new CheckBox(); hold5.Location = new Point(364, 208); // set common HOLD checkbox attributes... hold1.Text = hold2.Text = hold3.Text = hold4.Text = hold5.Text = "HOLD"; hold1.Font = hold2.Font = hold3.Font = hold4.Font = hold5.Font = new Font("Verdana", 11f, FontStyle.Bold); hold1.Size = hold2.Size = hold3.Size = hold4.Size = hold5.Size = new Size(80, 24); hold1.TextAlign = hold2.TextAlign = hold3.TextAlign = hold4.TextAlign = hold5.TextAlign = ContentAlignment.MiddleLeft; // add the HOLD checkboxes to the UI... Controls.Add(hold1); Controls.Add(hold2); Controls.Add(hold3); Controls.Add(hold4); Controls.Add(hold5); } private void initDealDrawButton() { dealDrawButton = new Button(); dealDrawButton.Location = new Point(168, 240); dealDrawButton.Size = new Size(104, 24); dealDrawButton.Font = new Font("Verdana",10f, FontStyle.Bold); dealDrawButton.Click += new EventHandler(dealDrawHandler); Controls.Add(dealDrawButton); } private void initPayoutTable() { // frame the payout table... GroupBox g = new GroupBox(); g.Location = new Point(8, 272); g.Size = new Size(200, 168); Controls.Add(g); Label l = new Label(); l.Location = new Point(5, 10); l.Text = Machine.PayoutTable; // payout text never changes l.Size = new Size(180, 150); l.Font =
new Font(FontFamily.GenericMonospace, 8f, FontStyle.Bold); g.Controls.Add(l); } private void initMachineStats() { GroupBox g = new GroupBox(); g.Location = new Point(216, 272); g.Size = new Size(216, 168); Controls.Add(g); machineStatsLabel = new Label(); machineStatsLabel.Location = new Point(5, 10); machineStatsLabel.Size = new Size(190, 150); machineStatsLabel.Font = new Font(FontFamily.GenericMonospace, 8f, FontStyle.Bold); g.Controls.Add(machineStatsLabel); } private void initStatusBar() { statusBarPanel = new StatusBarPanel(); statusBarPanel.BorderStyle = StatusBarPanelBorderStyle.Sunken; statusBarPanel.AutoSize = StatusBarPanelAutoSize.Spring; statusBarPanel.Alignment = HorizontalAlignment.Center; StatusBar s = new StatusBar(); s.ShowPanels = true; s.Font = new Font("Verdana", 8f, FontStyle.Bold); s.Panels.AddRange(new StatusBarPanel[]{statusBarPanel}); Controls.Add(s); } private void initPokerMachine() { // initialize the poker machine... machine = Machine.Instance; uiBet = machine.MinBet; uiCredits = machine.StartCredits; } protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); // make sure the player really wants to quit... DialogResult r = MessageBox.Show( "Quit ", "Closing", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (r != DialogResult.Yes) e.Cancel = true; } private void startOverHandler(object sender, EventArgs e) { // user selected "Start Over" from the File menu... newGame(); }
Copyright © OnBarcode.com . All rights reserved.