예제 #1
0
파일: Karuta.cs 프로젝트: Davudi2134/Karuta
 //Stop the program, stops processes and dispose dispoables
 private static void Close()
 {
     _isRunning = false;
     _interpretor.Stop();
     foreach (Thread t in _threads.Values)
     {
         t.Abort();
     }
     foreach (Timer t in _timers.Values)
     {
         t.Dispose();
     }
     LOGGER.Dump();
     _registry.Save($@"{DATA_DIR}/karuta.data");
     Console.WriteLine("GoodBye");
 }