public Form1() { InitializeComponent(); btn = new ButtonCompare [] { btn_first, btn_second, btn_third, btn_fourth }; helper = new HelperToCall(Motion); r = new Random(); }
ButtonCompare[] buttons; // Массив гонщиков public main_form() { InitializeComponent(); helper = new HelperToCall(Motion); random = new Random(); mre = new ManualResetEvent(false); buttons = new ButtonCompare[] { first_btn, second_btn, third_btn }; }
public MainForm() { running = new SoundPlayer(Properties.Resources.Track_06); background = new SoundPlayer(Properties.Resources._37_Applause_Cheering_Indoor_Hockey_Arena_Medium_Crowd); background.Play(); Thread.Sleep(500); InitializeComponent(); button = new ButtonCompare[] { first_car_btn, second_car_btn, third_car_btn, fourth_car_btn, fifth_car_btn }; helper = new HelperToCall(Motion); rand = new Random(); }