예제 #1
0
        public static bool ConsoleEventCallback(int eventType)
        {
            var tb = TogglBase.GetInstance();

            tb.Init(ConfigurationManager.AppSettings["apiKey"], ConfigurationManager.AppSettings["delay"].JFStringToInt());
            tb.StopRunningTimer();

            if (eventType == 2)
            {
                Console.WriteLine("Console window closing, death imminent");
                Debug.WriteLine("Console window closing, death imminent");
            }
            return(false);
        }