Ejemplo n.º 1
0
        private void CheckForCartButton(string region)
        {
            var       soundPlayer = new SoundPlayer(@"c:\Windows\Media\Alarm01.wav");
            CartAlert cartAlert   = new CartAlert();

            if (cartAlert.checkForCartButton(region))
            {
                tmrCartAlert.Stop();
                cbCartChecker.Checked = false;
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "] " + "Cart Button Found!");
                soundPlayer.Play();
            }
            else
            {
                //Out of Stock or Error
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "]Region:  " + region + " - Out of Stock.");
            }
        }
Ejemplo n.º 2
0
        private void CheckForCartButton(string region)
        {
            var       soundPlayer = new SoundPlayer(@"c:\Windows\Media\Alarm01.wav");
            CartAlert cartAlert   = new CartAlert();

            if (cartAlert.checkForCartButton(region))
            {
                Process.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "https://store.nvidia.com/store/nvidia/en_US/buy/productID.5438481700/clearCart.yes/nextPage.QuickBuyCartPage");
                tmrCartAlert.Stop();
                cbCartChecker.Checked = false;
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "] " + "Cart Button Found!");
                soundPlayer.Play();
            }
            else
            {
                //Out of Stock or Error
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "]Region:  " + region + " - Out of Stock.");
            }
        }
Ejemplo n.º 3
0
        private void CheckForCartButton(string region)
        {
            var       soundPlayer = new SoundPlayer(@"c:\Windows\Media\Alarm01.wav");
            CartAlert cartAlert   = new CartAlert();

            if (cartAlert.checkForCartButton(region))
            {
                Process.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "https://www.nvidia.com/en-gb/geforce/graphics-cards/30-series/rtx-3080/");
                tmrCartAlert.Stop();
                cbCartChecker.Checked = false;
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "] " + "Cart Button Found!");
                soundPlayer.Play();
            }
            else
            {
                //Out of Stock or Error
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "]Region:  " + region + " - Out of Stock.");
            }
        }
Ejemplo n.º 4
0
        private void CheckForCartButton(string region)
        {
            var       soundPlayer = new SoundPlayer(@"c:\Windows\Media\Alarm09.wav");
            CartAlert cartAlert   = new CartAlert();

            if (cartAlert.checkForCartButton(region))
            {
                tmrCartAlert.Stop();
                cbCartChecker.Checked = false;
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "] " + "Cart Button Found!");
                soundPlayer.Play();
                System.Diagnostics.Process.Start("https://www.nvidia.com/en-gb/geforce/graphics-cards/30-series/rtx-3080/");
                System.Diagnostics.Process.Start("https://store.nvidia.com/store/nvidia/en_US/buy/productID.5438481700/clearCart.yes/nextPage.QuickBuyCartPage");
            }
            else
            {
                //Out of Stock or Error
                lbCartLog.Items.Add("[" + library.getCurrentTime() + "]Region:  " + region + " - Out of Stock.");
            }
            lbCartLog.TopIndex = lbCartLog.Items.Count - 1;
        }