Ejemplo n.º 1
0
        protected override void OnFoundWord(WordFoundEventArgs e)
        {
            base.OnFoundWord(e);

            switch (e.Word)
            {
            case "RED":
                ColorIndex = 1;
                break;

            case "YELLOW":
                ColorIndex = 2;
                break;

            case "GREEN":
                ColorIndex = 3;
                break;

            case "CYAN":
                ColorIndex = 4;
                break;

            case "BLUE":
                ColorIndex = 5;
                break;

            case "PINK":
            case "MAGENTA":
                ColorIndex = 6;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        protected virtual void OnFoundWord(WordFoundEventArgs e)
        {
            if (FoundWord != null)
            {
                FoundWord(this, e);
            }

            _word = e.Word;

            switch (_word)
            {
            case "UP":
                Tilt = 1;
                break;

            case "DOWN":
                Tilt = -1;
                break;

            case "CANCEL":
                CancelJig();
                break;

            case "FINISH":
                Finished = true;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 3
0
        protected override void OnFoundWord(WordFoundEventArgs e)
        {
            base.OnFoundWord(e);

            switch (e.Word)
            {
                case "RED":
                    ColorIndex = 1;
                    break;
                case "YELLOW":
                    ColorIndex = 2;
                    break;
                case "GREEN":
                    ColorIndex = 3;
                    break;
                case "CYAN":
                    ColorIndex = 4;
                    break;
                case "BLUE":
                    ColorIndex = 5;
                    break;
                case "PINK":
                case "MAGENTA":
                    ColorIndex = 6;
                    break;
                default:
                    break;
            }
        }
Ejemplo n.º 4
0
    protected virtual void OnFoundWord(WordFoundEventArgs e)
    {
      if (FoundWord != null)
      {
        FoundWord(this, e);
      }

      _word = e.Word;

      switch (_word)
      {
        case "UP":
          Tilt = 1;
          break;
        case "DOWN":
          Tilt = -1;
          break;
        case "CANCEL":
          CancelJig();
          break;
        case "FINISH":
          Finished = true;
          break;
        default:
          break;
      }
    }