Exemplo n.º 1
0
        /// <summary>
        /// Fill list by effect data
        /// </summary>
        /// <param name="effect"></param>
        private void FillList(LayerEffect effect)
        {
            lsbEffects.Items.Clear();
            lsbEffects.Items.Add(LayerEffect.EmptyEffect(layer, Type));
            EffectCategory group = GetEffectGroup(Type);

            if (group != null)
            {
                LayerEffect selected = null;
                foreach (LayerEffect item in group.Effects)
                {
                    lsbEffects.Items.Add(item);
                    if (effect != null && item.Name == effect.Name)
                    {
                        selected = item;
                    }
                }
                if (selected != null)
                {
                    lsbEffects.SelectedItem = selected;
                }
                else
                {
                    lsbEffects.SelectedIndex = 0;
                }
            }
        }
Exemplo n.º 2
0
        private void FillList(LayerEffect effect)
        {
            lsbEffects.Items.Clear();
            ShapeLayer layer = null;

            lsbEffects.Items.Add(LayerEffect.EmptyEffect(layer, EffectType.Emphasis));
            EffectCategory group = GetEffectGroup(EffectType.Emphasis);


            if (group != null)
            {
                LayerEffect selected = null;
                foreach (LayerEffect item in group.Effects)
                {
                    if (item.Name != "WrapAround")
                    {
                        lsbEffects.Items.Add(item);
                        if (effect != null && item.Name == effect.Name)
                        {
                            selected = item;
                        }
                    }
                }

                //
                if (selected != null)
                {
                    lsbEffects.SelectedItem = selected;
                }
                else
                {
                    lsbEffects.SelectedIndex = 0;
                }
            }
        }
Exemplo n.º 3
0
        public ShapeLayer(ShapeBase shape)
        {
            Shape = shape;
            if (_shape != null && _shape.Type == ShapeType.ShapeDraw)
            {
                _IsVisible = _shape.IsVisible;
            }

            __entryEffect    = LayerEffect.EmptyEffect(this, EffectType.Entry);
            __emphasisEffect = LayerEffect.EmptyEffect(this, EffectType.Emphasis);
            __exitEffect     = LayerEffect.EmptyEffect(this, EffectType.Exit);
        }