Esempio n. 1
0
 /// <summary>
 /// 退出程序
 /// </summary>
 void exitApplication()
 {
     /* 删除文件缓存目录 */
     if (Directory.Exists(MyConfig.PATH_FILE_BUFFER))
     {
         FileTree.deleteDirectory(MyConfig.PATH_FILE_BUFFER, null);
     }
     System.Environment.Exit(0);
 }
Esempio n. 2
0
 private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     /* 删除文件缓存目录 */
     if (Directory.Exists(MyConfig.PATH_FILE_BUFFER))
     {
         FileTree.deleteDirectory(MyConfig.PATH_FILE_BUFFER, null);
     }
     /* 关闭同步线程 */
     if (ThreadSync != null)
     {
         ThreadSync.Abort();
     }
 }