Esempio n. 1
0
        /// <summary>Occurs when the control's effect has changed.</summary>
        protected virtual void OnEffectChanged(PolarControlEffect effect)
        {
            switch (effect)
            {
            case PolarControlEffect.Glass:
            {
                // BackColor = Color.Transparent;
                MakeBrushes();
                break;
            }

            case PolarControlEffect.None:
            {
                // if (Parent != null)
                //    BackColor = Parent.BackColor;
                // else
                //    BackColor = SystemColors.Control;
                break;
            }
            }
        }
Esempio n. 2
0
 /// <summary>Occurs when the control's effect has changed.</summary>
 protected virtual void OnEffectChanged(PolarControlEffect effect)
 {
     switch (effect)
     {
         case PolarControlEffect.Glass:
             {
                 //BackColor = Color.Transparent;
                 MakeBrushes();
                 break;
             }
         case PolarControlEffect.None:
             {
                 //if (Parent != null)
                 //    BackColor = Parent.BackColor;
                 //else
                 //    BackColor = SystemColors.Control;
                 break;
             }
     }
 }