Beispiel #1
0
        /// <summary>
        /// Handles the Load event of the AddShadow control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void AddShadow_Load(object sender, EventArgs e)
        {
            //throw new NotImplementedException();

            ZeroitDropshadow AddShadow = new ZeroitDropshadow(control.ParentForm);

            AddShadow.ShadowBlur   = shadowBlur;
            AddShadow.ShadowSpread = shadowSpread;
            AddShadow.ShadowV      = shadowV;
            AddShadow.ShadowH      = shadowH;
            AddShadow.ShadowColor  = shadowColor;
            AddShadow.ActivateShadow();
        }
 /// <summary>
 /// Deactivates the shadow.
 /// </summary>
 public void DeActivateShadow()
 {
     if (!DesignMode)
     {
         ZeroitDropshadow shadow = new ZeroitDropshadow(Owner)
         {
             ShadowBlur   = _shadowBlur = 0,
             ShadowSpread = _shadowSpread,
             ShadowColor  = _shadowColor,
             //ShadowOpacity = _shadowOpacity = 255,
             ShadowH = _shadowH,
             ShadowV = _shadowV,
         };
         shadow.RefreshShadow();
     }
 }