Exemplo n.º 1
0
        public void BotBuddha(int i)
        {
            if (this.pictureBox2.InvokeRequired)
            {
                SetBotCallback p = new SetBotCallback(BotBuddha);
                this.Invoke(p, new object[] { i });
            }
            else
            {
                switch (i)
                {
                case 0:
                    try
                    {
                        pictureBox1.Image = Properties.Resources.supreme_box_logo___1;
                    }
                    catch (Exception) { }

                    pictureBox2.Image = Properties.Resources.robot_hands___down;

                    Bot.Stop();

                    Randomizer.Change(Timeout.Infinite, Timeout.Infinite);
                    Block = false;
                    break;

                case 1:
                    pictureBox2.Image = Properties.Resources.robot_gif;

                    Bot.Start();

                    Randomizer.Change(0, 3000);
                    Block = true;
                    break;

                case 2:
                    pictureBox2.Image = Properties.Resources.robot_hands___up;
                    break;

                case 3:
                    pictureBox2.Image = Properties.Resources.robot_gif;
                    pictureBox2.Refresh();
                    break;
                }
            }

            EmptyWorkingSet(Process.GetCurrentProcess().Handle);
        }