コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: sishanM/Bili-dl
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     UpdatePromptBox.StopCheckVersion();
     DownloadQueuePanel.StopAll();
     SettingPanel.Settings settings = ConfigManager.ConfigManager.GetSettings();
     if (settings.MovedTempPath != null && settings.MovedTempPath != settings.TempPath)
     {
         CopyDirectory(settings.TempPath, settings.MovedTempPath);
         settings.TempPath      = settings.MovedTempPath;
         settings.MovedTempPath = null;
         ConfigManager.ConfigManager.SetSettings(settings);
     }
 }
コード例 #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     DownloadFinishedNotification.DisposeNotifyIcon();
     NotificationManager.Close();
     UpdateUtil.StopCheckVersion();
     DownloadManager.StopAll();
     SettingPanel.Settings settings = ConfigUtil.ConfigManager.GetSettings();
     if (settings.MovedTempPath != null && settings.MovedTempPath != settings.TempPath)
     {
         CopyDirectory(settings.TempPath, settings.MovedTempPath);
         settings.TempPath      = settings.MovedTempPath;
         settings.MovedTempPath = null;
         ConfigUtil.ConfigManager.SetSettings(settings);
     }
 }