Esempio n. 1
0
        internal void StartSetPlayerCardPIN(int playerId, int PIN)
        {
            PlayerLookupInfo playerInfo = new PlayerLookupInfo();

            playerInfo.playerID                 = playerId;
            playerInfo.PIN                      = PIN;
            m_waitForm.Message                  = Resources.WaitFormUpdatingPlayer;
            m_worker                            = new BackgroundWorker();
            m_worker.WorkerReportsProgress      = true;
            m_worker.WorkerSupportsCancellation = false;
            m_worker.DoWork                    += new DoWorkEventHandler(SendGetSetPlayerCardPIN);
            m_worker.ProgressChanged           += new ProgressChangedEventHandler(m_waitForm.ReportProgress);
            m_worker.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(GetSetPlayerCardPINComplete);
            m_worker.RunWorkerAsync(playerInfo);
        }
Esempio n. 2
0
        internal void StartGetPlayer(string magCardNumber, int PIN)
        {
            PlayerLookupInfo playerInfo = new PlayerLookupInfo();

            playerInfo.CardNumber = magCardNumber;
            playerInfo.PIN        = PIN;

            m_waitForm.Message                  = Resources.WaitFormGettingPlayer;
            m_worker                            = new BackgroundWorker();
            m_worker.WorkerReportsProgress      = true;
            m_worker.WorkerSupportsCancellation = false;
            m_worker.DoWork                    += new DoWorkEventHandler(SendGetPlayer);
            m_worker.ProgressChanged           += new ProgressChangedEventHandler(m_waitForm.ReportProgress);
            m_worker.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(GetPlayerCompleteAwardPoints);
            m_worker.RunWorkerAsync(playerInfo);
        }