Фабрики и рефакторинг блока обработчиков, Вынесение словарей настроек адаптации в отдельный файл.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user