diff --git a/Pf2eDataScrapper/ImportApplication.cs b/Pf2eDataScrapper/ImportApplication.cs index 43425af..61d9763 100644 --- a/Pf2eDataScrapper/ImportApplication.cs +++ b/Pf2eDataScrapper/ImportApplication.cs @@ -6,6 +6,7 @@ using Pf2eDataScrapper.App; using Pf2eDataScrapper.Helpers; using Pf2eDataScrapper.Processors; using Pf2eDataScrapper.WPF; +using Pf2eDataScrapper.WPF.EntityViewer; using Pf2eDataScrapper.WPF.Views; using Pf2eModel; using Slugify; @@ -53,7 +54,7 @@ internal sealed class ImportApplication : Application private StartForm? _startFormWpf; - private ProgressFormWpf? _progressFormWpf; + private ProgressForm? _progressFormWpf; private EntityForm? _entityForm; @@ -89,9 +90,7 @@ internal sealed class ImportApplication : Application ServiceProvider ); - _progressFormWpf = ActivatorUtilities.CreateInstance( - ServiceProvider - ); + _progressFormWpf = ActivatorUtilities.CreateInstance(ServiceProvider); _progressFormWpf.WindowStartupLocation = WindowStartupLocation.CenterScreen; _progressFormWpf.Closing += Wpf_HandleFormClosing; _progressFormWpf.ApplicationStateChange += ApplicationStateChange; diff --git a/Pf2eDataScrapper/WPF/Components/EntityViewControl.xaml b/Pf2eDataScrapper/WPF/Components/EntityViewControl.xaml deleted file mode 100644 index 702e2ce..0000000 --- a/Pf2eDataScrapper/WPF/Components/EntityViewControl.xaml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Pf2eDataScrapper/WPF/Components/DbEntityListControl.xaml b/Pf2eDataScrapper/WPF/EntityViewer/Component/EntityListControl.xaml similarity index 94% rename from Pf2eDataScrapper/WPF/Components/DbEntityListControl.xaml rename to Pf2eDataScrapper/WPF/EntityViewer/Component/EntityListControl.xaml index cb9c466..69b7ad6 100644 --- a/Pf2eDataScrapper/WPF/Components/DbEntityListControl.xaml +++ b/Pf2eDataScrapper/WPF/EntityViewer/Component/EntityListControl.xaml @@ -1,13 +1,13 @@  /// Логика взаимодействия для DbEntityListControl.xaml /// -internal partial class DbEntityListControl : System.Windows.Controls.UserControl +internal partial class EntityListControl : System.Windows.Controls.UserControl { - public DbEntityListViewModel? ViewModel + public EntityListViewModel? ViewModel { get => _viewModel; set @@ -18,9 +18,9 @@ internal partial class DbEntityListControl : System.Windows.Controls.UserControl } } - private DbEntityListViewModel? _viewModel; + private EntityListViewModel? _viewModel; - public DbEntityListControl() + public EntityListControl() { InitializeComponent(); } diff --git a/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml b/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml new file mode 100644 index 0000000..89257ff --- /dev/null +++ b/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml @@ -0,0 +1,123 @@ + + + + /FontAwesome.Sharp;component/fonts/#Font Awesome 6 Free Solid + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +