ForceClose() public static method

public static ForceClose ( ) : void
return void
Ejemplo n.º 1
0
 // Token: 0x060003C9 RID: 969 RVA: 0x0000CC5F File Offset: 0x0000AE5F
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     if (!e.Cancel && !(this is MetroTaskWindow))
     {
         MetroTaskWindow.ForceClose();
     }
 }
Ejemplo n.º 2
0
        protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);
            if (e.Cancel)
            {
                return;
            }

            // TODO: This looks wrong / assuming that there's only one window
            if (!(this is MetroTaskWindow))
            {
                MetroTaskWindow.ForceClose();
            }
        }
Ejemplo 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);
        }