AnAppADay.TimeManagement.WinApp.Program.Exit_Select C# (CSharp) Method

Exit_Select() static private method

static private Exit_Select ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        static void Exit_Select(object sender, EventArgs e)
        {
            ntfy.Visible = false;
            ntfy.Dispose();
            STOP = true;
            //let the other thread exit
            Thread.Sleep(pollRate + 1000);
            write.Close();
            Application.Exit();
            System.Environment.Exit(0);
        }