示例#1
0
        public void CyclesRenderFinished()
        {
            AddToConsole("Cycles Render finished.");

            if (autoclave.Running)
            {
                this.BackColor = Color.ForestGreen;
                button1.Text   = "STOP AUTOCLAVE";
            }
            else
            {
                this.BackColor = Color.IndianRed;
                button1.Text   = "START AUTOCLAVE";
            }

            if (ActionMode.Text == "Slave" && NumbersList.Count > 0)
            {
                BringToFront();

                SequentialSlave slave = new SequentialSlave();
                slave.Sequence = NumbersList;
                slave.main     = this;
                slave.Show();
                slave.LoadLottery(0);
                slave.BringToFront();

                this.BackColor    = Color.Gray;
                button1.Text      = "RESUME FROM SLAVE";
                autoclave.Running = false;
            }
        }
示例#2
0
        public void CyclesRenderFinished()
        {
            AddToConsole("Cycles Render finished.");

            progressBar1.MarqueeAnimationSpeed = 1;
            UpdateProgressBar1(0, 1);

            this.textBox1.Enabled = !autoclave.Running;

            if (autoclave.Running)
            {
                this.BackColor = Color.ForestGreen;
                button1.Text   = "STOP AUTOCLAVE";
            }
            else
            {
                this.BackColor = Color.IndianRed;
                button1.Text   = "START AUTOCLAVE";
            }

            if (ActionMode.Text == "Slave" && NumbersList.Count > 0)
            {
                BringToFront();

                SequentialSlave slave = new SequentialSlave();
                slave.Sequence = NumbersList;
                slave.main     = this;
                slave.Show();
                slave.LoadLottery(0);
                slave.BringToFront();

                this.BackColor    = Color.Gray;
                button1.Text      = "RESUME FROM SLAVE";
                autoclave.Running = false;

                SystemSounds.Asterisk.Play();
            }
        }