Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace DogAtTheRaces1
- {
- public partial class Form1 : Form
- {
- Guy[] guys = new Guy[3];
- Bet[] bets = new Bet[3];
- Label[] guylabel;
- RadioButton[] guyRadioButton;
- string[] names;
- decimal[] cash;
- public Form1()
- {
- guylabel = new Label[3] { label1, label2, label3 };
- guyRadioButton = new RadioButton[3] { radioButton1, radioButton2, radioButton3 };
- names = new string[3] { "Joe", "Bob", "Al" };
- cash = new decimal[3] { 50, 75, 45 };
- InitializeComponent();
- }
- public void initializeGuys()
- {
- for (int i = 0; i < guys.Length; i++)
- {
- guys[i] = new Guy();
- bets[i] = guys[i].bet;
- guys[i].label = guylabel[i];
- guys[i].radiobutton = guyRadioButton[i];
- guys[i].name = names[0];
- guys[i].cash = cash[0];
- }
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement