Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.31 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 = new string[3] { "Joe", "Bob", "Al" };
  20.         decimal[] cash = new decimal[3] { 50, 75, 45 };
  21.         public Form1()
  22.         {
  23.             guylabel = new Label[3] { label1, label2, label3 };
  24.             guyRadioButton = new RadioButton[3] { radioButton1, radioButton2, radioButton3 };
  25.             InitializeComponent();
  26.            
  27.         }
  28.         public void initializeGuys()
  29.         {
  30.             for (int i = 0; i < guys.Length; i++)
  31.             {
  32.                 guys[i] = new Guy();
  33.                 bets[i] = guys[i].bet;
  34.                 guys[i].label = guylabel[i];
  35.                 guys[i].radiobutton = guyRadioButton[i];
  36.                 guys[i].name = names[0];
  37.                 guys[i].cash = cash[0];
  38.                
  39.             }
  40.          
  41.  
  42.         }
  43.  
  44.         private void Form1_Load(object sender, EventArgs e)
  45.         {
  46.  
  47.         }
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement