コード例 #1
0
        public void SetPod(VuePod pod, VuePodColor color)
        {
            int podval = 0;

            switch (pod)
            {
            case VuePod.ONE:
                podval = 1;
                break;

            case VuePod.TWO:
                podval = 2;
                break;

            case VuePod.THREE:
                podval = 3;
                break;

            default:
                break;
            }
            if (podval > 0)
            {
                switch (color)
                {
                case VuePodColor.BLACKOUT:
                    SetLevel(0, startChannel + podval);
                    break;

                case VuePodColor.RED:
                    SetLevel(7, startChannel + podval);
                    break;

                case VuePodColor.YELLOW:
                    SetLevel(12, startChannel + podval);
                    break;

                case VuePodColor.GREEN:
                    SetLevel(17, startChannel + podval);
                    break;

                case VuePodColor.BLUE:
                    SetLevel(22, startChannel + podval);
                    break;

                case VuePodColor.PURPLE:
                    SetLevel(27, startChannel + podval);
                    break;

                case VuePodColor.CYAN:
                    SetLevel(32, startChannel + podval);
                    break;

                case VuePodColor.WHITE:
                    SetLevel(37, startChannel + podval);
                    break;

                default:
                    break;
                }
            }
        }
コード例 #2
0
 public void SetPod(VuePod pod, VuePodColor color)
 {
     int podval = 0;
     switch (pod)
     {
         case VuePod.ONE:
             podval = 1;
             break;
         case VuePod.TWO:
             podval = 2;
             break;
         case VuePod.THREE:
             podval = 3;
             break;
         default:
             break;
     }
     if (podval > 0)
     {
         switch (color)
         {
             case VuePodColor.BLACKOUT:
                 SetLevel(0, startChannel + podval);
                 break;
             case VuePodColor.RED:
                 SetLevel(7, startChannel + podval);
                 break;
             case VuePodColor.YELLOW:
                 SetLevel(12, startChannel + podval);
                 break;
             case VuePodColor.GREEN:
                 SetLevel(17, startChannel + podval);
                 break;
             case VuePodColor.BLUE:
                 SetLevel(22, startChannel + podval);
                 break;
             case VuePodColor.PURPLE:
                 SetLevel(27, startChannel + podval);
                 break;
             case VuePodColor.CYAN:
                 SetLevel(32, startChannel + podval);
                 break;
             case VuePodColor.WHITE:
                 SetLevel(37, startChannel + podval);
                 break;
             default:
                 break;
         }
     }
 }