public static IEffect CreateEffect(Effect effectName, Canvas upperCanvas, Canvas lowerCanvas)
 {
     IEffect effect;
      switch (effectName)
      {
          case Effect.None:
              return new NoEffect();
          case Effect.Shade80LeftLeft:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 80, IsUpperFromLeft = true, IsLowerFromLeft = true};
              break;
          case Effect.Shade80RightRight:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 80, IsUpperFromLeft = false, IsLowerFromLeft = false};
              break;
          case Effect.Shade80LeftRight:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 80, IsUpperFromLeft = true, IsLowerFromLeft = false};
              break;
          case Effect.Shade80RightLeft:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 80, IsUpperFromLeft = false, IsLowerFromLeft = true};
              break;
          case Effect.Shade40LeftLeft:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 40, IsUpperFromLeft = true, IsLowerFromLeft = true};
              break;
          case Effect.Shade40RightRight:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 40, IsUpperFromLeft = false, IsLowerFromLeft = false};
              break;
          case Effect.Shade40LeftRight:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 40, IsUpperFromLeft = true, IsLowerFromLeft = false};
              break;
          case Effect.Shade40RightLeft:
              effect = new Shades(upperCanvas, lowerCanvas) {BarWidth = 40, IsUpperFromLeft = false, IsLowerFromLeft = true};
              break;
          default:
              effect = new NoEffect();
              break;
      }
      return effect;
 }
        public static IEffect CreateEffect(Effect effectName, Canvas upperCanvas, Canvas lowerCanvas)
        {
            IEffect effect;
            switch (effectName) {
                case Effect.None:
                    return new NoEffect();
                case Effect.Shade80LeftLeft:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 80, IsUpperFromLeft = true, IsLowerFromLeft = true };
                    break;
                case Effect.Shade80RightRight:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 80, IsUpperFromLeft = false, IsLowerFromLeft = false };
                    break;
                case Effect.Shade80LeftRight:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 80, IsUpperFromLeft = true, IsLowerFromLeft = false };
                    break;
                case Effect.Shade80RightLeft:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 80, IsUpperFromLeft = false, IsLowerFromLeft = true };
                    break;
                case Effect.Shade40LeftLeft:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 40, IsUpperFromLeft = true, IsLowerFromLeft = true };
                    break;
                case Effect.Shade40RightRight:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 40, IsUpperFromLeft = false, IsLowerFromLeft = false };
                    break;
                case Effect.Shade40LeftRight:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 40, IsUpperFromLeft = true, IsLowerFromLeft = false };
                    break;
                case Effect.Shade40RightLeft:
                    effect = new Shades(upperCanvas, lowerCanvas) { BarWidth = 40, IsUpperFromLeft = false, IsLowerFromLeft = true };
                    break;

                case Effect.Gif1:
                    effect = new NoEffect();
                    //effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/1.gif");
                    break;
                case Effect.Gif2:
                    effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/2.gif");
                    break;
                case Effect.Gif3:
                    effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/3.gif");
                    break;
                case Effect.Gif4:
                    effect = new NoEffect();
                    //effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/4.gif");
                    break;
                case Effect.Gif5:
                    effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/5.gif");
                    break;
                case Effect.Gif6:
                    effect = new NoEffect();
                    //effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/6.gif");
                    break;
                case Effect.Gif7:
                    effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/7.gif");
                    break;
                case Effect.Gif8:
                    effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/8.gif");
                    break;
                case Effect.Gif9:
                    effect = new NoEffect();
                    //effect = new GifEffect(upperCanvas, lowerCanvas, "/PhotoHuntAsianBeauty3;component/Images/EffectGifs/9.gif");
                    break;

                case Effect.TileBreathingAlternating23:
                    effect = new BreathingTiles(upperCanvas, lowerCanvas, 2, 3, false);
                    break;
                case Effect.TileBreathingAlternating46:
                    effect = new BreathingTiles(upperCanvas, lowerCanvas, 4, 6, false);
                    break;
                case Effect.TileBreathing23:
                    effect = new BreathingTiles(upperCanvas, lowerCanvas, 2, 3, true);
                    break;
                case Effect.TileBreathing46:
                    effect = new BreathingTiles(upperCanvas, lowerCanvas, 4, 6, true);
                    break;

                case Effect.TileBlinkingAlternating23:
                    effect = new BlinkingTiles(upperCanvas, lowerCanvas, 2, 3, false);
                    break;
                case Effect.TileBlinkingAlternating46:
                    effect = new BlinkingTiles(upperCanvas, lowerCanvas, 4, 6, false);
                    break;
                case Effect.TileBlinking23:
                    effect = new BlinkingTiles(upperCanvas, lowerCanvas, 2, 3, true);
                    break;
                case Effect.TileBlinking46:
                    effect = new BlinkingTiles(upperCanvas, lowerCanvas, 4, 6, true);
                    break;

                default:
                    effect = new NoEffect();
                    break;
            }
            return effect;
        }