Beispiel #1
0
 /// <summary>
 /// Mark the current decoding step completed and the next step started.
 /// </summary>
 /// <param name="finishedStep"></param>
 public void SetNextStep(int finishedStep)
 {
     if (MainForm.Program.InvokeRequired)
     {
         StepUpdateCallback cb = new StepUpdateCallback(SetNextStep);
         this.Invoke(cb, new object[] { finishedStep });
     }
     else
     {
         SetStepCompleted(finishedStep);
         SetStepStarted(finishedStep + 1);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Indicate that a decoding step has completed by placing a check next
        /// to the step.
        /// </summary>
        /// <param name="step"></param>
        public void SetStepCompleted(int step)
        {
            if (MainForm.Program.InvokeRequired)
            {
                StepUpdateCallback cb = new StepUpdateCallback(SetStepCompleted);
                this.Invoke(cb, new object[] { step });
            }
            else
            {
                switch (step)
                {
                case 1:
                    pictureBox1.Show();
                    break;

                case 2:
                    pictureBox2.Show();
                    break;

                case 3:
                    pictureBox3.Show();
                    break;

                case 4:
                    pictureBox4.Show();
                    break;

                case 5:
                    pictureBox5.Show();
                    break;

                case 6:
                    pictureBox6.Show();
                    break;

                case 7:
                    pictureBox7.Show();
                    break;

                case 8:
                    pictureBox8.Show();
                    break;

                case 9:
                    pictureBox9.Show();
                    break;
                }
                stepsInitialzed = false;
            }
        }
Beispiel #3
0
        /// <summary>
        /// Given a decoding step, indicate that it has started by changing the
        /// font to bold.
        /// </summary>
        /// <param name="step"></param>
        public void SetStepStarted(int step)
        {
            if (MainForm.Program.InvokeRequired)
            {
                StepUpdateCallback cb = new StepUpdateCallback(SetStepStarted);
                this.Invoke(cb, new object[] { step });
            }
            else
            {
                switch (step)
                {
                case 1:
                    labelStatus1.Font = new Font(labelStatus1.Font, FontStyle.Bold);
                    break;

                case 2:
                    labelStatus2.Font = new Font(labelStatus2.Font, FontStyle.Bold);
                    break;

                case 3:
                    labelStatus3.Font = new Font(labelStatus3.Font, FontStyle.Bold);
                    break;

                case 4:
                    labelStatus4.Font = new Font(labelStatus4.Font, FontStyle.Bold);
                    break;

                case 5:
                    labelStatus5.Font = new Font(labelStatus5.Font, FontStyle.Bold);
                    break;

                case 6:
                    labelStatus6.Font = new Font(labelStatus6.Font, FontStyle.Bold);
                    break;

                case 7:
                    labelStatus7.Font = new Font(labelStatus7.Font, FontStyle.Bold);
                    break;

                case 8:
                    labelStatus8.Font = new Font(labelStatus8.Font, FontStyle.Bold);
                    break;

                case 9:
                    labelStatus9.Font = new Font(labelStatus9.Font, FontStyle.Bold);
                    break;
                }
                stepsInitialzed = false;
            }
        }
Beispiel #4
0
 /// <summary>
 /// Given a decoding step, indicate that it has started by changing the
 /// font to bold.
 /// </summary>
 /// <param name="step"></param>
 public void SetStepStarted(int step)
 {
     if (MainForm.Program.InvokeRequired) {
         StepUpdateCallback cb = new StepUpdateCallback(SetStepStarted);
         this.Invoke(cb, new object[] { step });
     } else {
         switch (step) {
             case 1:
                 labelStatus1.Font = new Font(labelStatus1.Font, FontStyle.Bold);
                 break;
             case 2:
                 labelStatus2.Font = new Font(labelStatus2.Font, FontStyle.Bold);
                 break;
             case 3:
                 labelStatus3.Font = new Font(labelStatus3.Font, FontStyle.Bold);
                 break;
             case 4:
                 labelStatus4.Font = new Font(labelStatus4.Font, FontStyle.Bold);
                 break;
             case 5:
                 labelStatus5.Font = new Font(labelStatus5.Font, FontStyle.Bold);
                 break;
             case 6:
                 labelStatus6.Font = new Font(labelStatus6.Font, FontStyle.Bold);
                 break;
             case 7:
                 labelStatus7.Font = new Font(labelStatus7.Font, FontStyle.Bold);
                 break;
             case 8:
                 labelStatus8.Font = new Font(labelStatus8.Font, FontStyle.Bold);
                 break;
             case 9:
                 labelStatus9.Font = new Font(labelStatus9.Font, FontStyle.Bold);
                 break;
         }
         stepsInitialzed = false;
     }
 }
Beispiel #5
0
 /// <summary>
 /// Indicate that a decoding step has completed by placing a check next
 /// to the step.
 /// </summary>
 /// <param name="step"></param>
 public void SetStepCompleted(int step)
 {
     if (MainForm.Program.InvokeRequired) {
         StepUpdateCallback cb = new StepUpdateCallback(SetStepCompleted);
         this.Invoke(cb, new object[] { step });
     } else {
         switch (step) {
             case 1:
                 pictureBox1.Show();
                 break;
             case 2:
                 pictureBox2.Show();
                 break;
             case 3:
                 pictureBox3.Show();
                 break;
             case 4:
                 pictureBox4.Show();
                 break;
             case 5:
                 pictureBox5.Show();
                 break;
             case 6:
                 pictureBox6.Show();
                 break;
             case 7:
                 pictureBox7.Show();
                 break;
             case 8:
                 pictureBox8.Show();
                 break;
             case 9:
                 pictureBox9.Show();
                 break;
         }
         stepsInitialzed = false;
     }
 }
Beispiel #6
0
 /// <summary>
 /// Mark the current decoding step completed and the next step started.
 /// </summary>
 /// <param name="finishedStep"></param>
 public void SetNextStep(int finishedStep)
 {
     if (MainForm.Program.InvokeRequired) {
         StepUpdateCallback cb = new StepUpdateCallback(SetNextStep);
         this.Invoke(cb, new object[] { finishedStep });
     } else {
         SetStepCompleted(finishedStep);
         SetStepStarted(finishedStep + 1);
     }
 }