Console.CancelKeyPress += new ConsoleCancelEventHandler(shutdownHook);
private static void shutdownHook(object sender, EventArgs arguments){
if (playerInstance != null)
playerInstance.Close();
}
Console.CancelKeyPress += new ConsoleCancelEventHandler(shutdownHook);
private static void shutdownHook(object sender, EventArgs arguments){
if (playerInstance != null)
playerInstance.Close();
}