AutoWikiBrowser.MainForm.Shutdown C# (CSharp) Method

Shutdown() private method

private Shutdown ( ) : void
return void
        private void Shutdown()
        {
            if (CanShutdown)
            {
                ShutdownTimer.Enabled = true;
                ShutdownTimer.Start();
                ShutdownNotification shut = new ShutdownNotification { ShutdownType = GetShutdownType() };

                switch (shut.ShowDialog(this))
                {
                    case DialogResult.Cancel:
                        ShutdownTimer.Stop();
                        ShutdownTimer.Enabled = false;
                        MessageBox.Show(GetShutdownType() + " aborted!");
                        return;
                    case DialogResult.OK:
                        ShutdownComputer();
                        break;
                }
            }
        }
MainForm