Beispiel #1
0
        // Кнопки Start, Stop
        private void _methodStart()
        {
            if (end != null)
            {
                end.Close();
            }
            obj = new Millioner();
            // Создания потока с обработчиком RefreshView
            ThreadStart MethodGameEv = new ThreadStart(RefreshView);
            Thread      threadEv     = new Thread(MethodGameEv);

            threadEv.IsBackground = false;
            threadEv.Start();
            // Создание потока с обработчиком Randomizing
            ThreadStart MethodRandom = new ThreadStart(Randomizing);
            Thread      threadRand   = new Thread(MethodRandom);

            threadRand.IsBackground = false;
            threadRand.Start();
        }
Beispiel #2
0
        // Конструктор
        public Form1()
        {
            InitializeComponent();
            NecessaryInRefresh = new object[29];
            MyProgressBar      = new string[11];
            Percents           = new string[11];
            obj          = null;
            subj         = null;
            Array        = new Adapted_strings(); // Перегрузка на загрузку с файла - new Adapted_strings("path");
            Levels       = new Label[15];
            Answers      = new Button[4];
            _Help        = new Label[4];
            _HelpProgBar = new Label[4];
            InitProgressBar();
            InitLevels();
            InitHelps();
            InitPercetns();
            InitNIR();
            Findex = new int[10];
            SoundPlayer player = new SoundPlayer();

            player.SoundLocation = "Sounds/begin.wav";
            player.Play();
        }