www.rinner.st

the blog/wiki/website/homepage/internetpräsenz of Stefan Rinner

Friday, May 25, 2007

Console.CancelKeyPress += new ConsoleCancelEventHandler(shutdownHook);

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