Exemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (metroDropShadowForm == null && !DesignMode && hasShadow)
            {
                metroDropShadowForm = new MetroDropShadow(this);
            }
        }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (!ISDISPOSE && metroDropShadowForm != null)
     {
         ISDISPOSE = true;
         if (!metroDropShadowForm.IsDisposed)
         {
             metroDropShadowForm.Owner = null;
             metroDropShadowForm.Dispose();
             metroDropShadowForm = null;
         }
     }
     base.Dispose(disposing);
 }
Exemplo n.º 3
0
        protected override void OnClosing(CancelEventArgs e)
        {
            if (!(this is MetroTaskWindow))
            {
                MetroTaskWindow.ForceClose();
            }

            if (metroDropShadowForm != null)
            {
                metroDropShadowForm.Visible = false;
                metroDropShadowForm.Owner   = null;
                metroDropShadowForm         = null;
            }

            base.OnClosing(e);
        }
Exemplo n.º 4
0
        protected override void Dispose(bool disposing)
        {
            if (metroDropShadowForm != null)
            {
                if (!metroDropShadowForm.IsDisposed)
                {
                    if (metroDropShadowForm.Owner != null)
                    {
                        metroDropShadowForm.Owner = null;
                    }

                    metroDropShadowForm.Dispose();
                    metroDropShadowForm = null;
                }
            }

            base.Dispose(disposing);
        }
Exemplo n.º 5
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (metroDropShadowForm == null && !DesignMode && hasShadow)
                metroDropShadowForm = new MetroDropShadow(this);
        }
Exemplo n.º 6
0
        protected override void OnClosing(CancelEventArgs e)
        {
            if (!(this is MetroTaskWindow))
                MetroTaskWindow.ForceClose();

            if (metroDropShadowForm != null)
            {
                metroDropShadowForm.Visible = false;
                metroDropShadowForm.Owner = null;
                metroDropShadowForm = null;
            }

            base.OnClosing(e);
        }
Exemplo n.º 7
0
        protected override void Dispose(bool disposing)
        {
            if (metroDropShadowForm != null)
            {
                if (!metroDropShadowForm.IsDisposed)
                {
                    metroDropShadowForm.Owner = null;
                    metroDropShadowForm.Dispose();
                    metroDropShadowForm = null;
                }
            }

            base.Dispose(disposing);
        }