Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.35 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace DogAtTheRaces1
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         Guy[] guys = new Guy[3];
  16.         Bet[] bets = new Bet[3];
  17.         Label[] guylabel;
  18.         RadioButton[] guyRadioButton;
  19.         string[] names;
  20.         decimal[] cash;
  21.         public Form1()
  22.         {
  23.             guylabel = new Label[3] { label1, label2, label3 };
  24.             guyRadioButton = new RadioButton[3] { radioButton1, radioButton2, radioButton3 };
  25.             names = new string[3] { "Joe", "Bob", "Al" };
  26.             cash = new decimal[3] { 50, 75, 45 };
  27.             InitializeComponent();
  28.            
  29.         }
  30.         public void initializeGuys()
  31.         {
  32.             for (int i = 0; i < guys.Length; i++)
  33.             {
  34.                 guys[i] = new Guy();
  35.                 bets[i] = guys[i].bet;
  36.                 guys[i].label = guylabel[i];
  37.                 guys[i].radiobutton = guyRadioButton[i];
  38.                 guys[i].name = names[0];
  39.                 guys[i].cash = cash[0];
  40.                
  41.             }
  42.          
  43.  
  44.         }
  45.  
  46.         private void Form1_Load(object sender, EventArgs e)
  47.         {
  48.  
  49.         }
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement