Фабрики и рефакторинг блока обработчиков, Вынесение словарей настроек адаптации в отдельный файл.

This commit is contained in:
2025-05-22 00:34:57 +04:00
parent 81695587f1
commit 34be3a5fc4
64 changed files with 921 additions and 601 deletions
@@ -2,6 +2,7 @@
using System.Collections.ObjectModel;
using System.Drawing;
using System.Windows;
using LinqToDB.Tools;
using Pf2eDataScrapper.Helpers;
namespace Pf2eDataScrapper.WPF.ProgressForm;
@@ -26,7 +27,6 @@ internal partial class ProgressForm : Window
Progress.ProgressComplete += Progress_ProgressComplete;
}
private void Progress_ProgressUpdate(ProcessProgress sender)
{
if (!Dispatcher.CheckAccess())
@@ -58,9 +58,10 @@ internal partial class ProgressForm : Window
MessageListView.ScrollIntoView(item);
}
private void Progress_ProgressComplete(ProcessProgress sender)
{
(Application.Current as ImportApplication)!.CurrentStage = ApplicationStage.Viewer;
ApplicationStateChange?.Invoke(this, ApplicationStage.Viewer);
}
public event ImportApplication.ApplicationStateChangeDelegate? ApplicationStateChange;