예제 #1
0
        private async Task Exit()
        {
            cts.Cancel();
            if (SettingsForm != null)
            {
                SettingsForm.Close();
            }
            this.Hide();
            notifyIcon1.Visible = false;
            await player.Dispose();

            Environment.Exit(0);
        }