From bb50ebe9863e1f47725c828ce1806612ac9cefbc Mon Sep 17 00:00:00 2001 From: kozhilya Date: Wed, 21 May 2025 15:04:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20(=D0=BD=D0=B0=D0=B4=D0=B5=D1=8E=D1=81?= =?UTF-8?q?=D1=8C)=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81=20WPF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pf2eDataScrapper/ImportApplication.cs | 4 +- .../EntityViewer/Component/ViewControl.xaml | 70 +++++++++++--- .../WPF/EntityViewer/EntityForm.xaml | 11 ++- .../WPF/EntityViewer/EntityForm.xaml.cs | 11 ++- .../EntityViewStructure/StructureBuilder.cs | 7 +- .../EntityViewStructure/StructureField.cs | 32 ++++++- .../StructureFieldComplex.cs | 41 ++++++-- .../EntityViewStructure/StructureRow.cs | 93 ++++++++++++++++++- .../Stores/SelectedEntityStore.cs | 4 +- .../ViewModel/EntityFormViewModel.cs | 23 ++++- .../ViewModel/EntityListViewModel.cs | 56 +++-------- .../EntityViewer/ViewModel/ViewViewModel.cs | 7 +- 12 files changed, 267 insertions(+), 92 deletions(-) diff --git a/Pf2eDataScrapper/ImportApplication.cs b/Pf2eDataScrapper/ImportApplication.cs index 61d9763..ee1c1f5 100644 --- a/Pf2eDataScrapper/ImportApplication.cs +++ b/Pf2eDataScrapper/ImportApplication.cs @@ -25,8 +25,8 @@ internal sealed class ImportApplication : Application Settings = settings; Processors = processors; - //CurrentStage = ApplicationStage.InitialSettings; - CurrentStage = ApplicationStage.Viewer; + CurrentStage = ApplicationStage.InitialSettings; + //CurrentStage = ApplicationStage.Viewer; } #region "Поля" diff --git a/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml b/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml index 89257ff..32ff84b 100644 --- a/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml +++ b/Pf2eDataScrapper/WPF/EntityViewer/Component/ViewControl.xaml @@ -6,6 +6,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:fa="http://schemas.awesome.incremented/wpf/xaml/fontawesome.sharp" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:struct="clr-namespace:Pf2eDataScrapper.WPF.EntityViewer.EntityViewStructure" xmlns:viewmodel="clr-namespace:Pf2eDataScrapper.WPF.EntityViewer.ViewModel" x:Name="_this" d:DataContext="{d:DesignInstance Type=viewmodel:ViewViewModel}" @@ -17,15 +18,15 @@ /FontAwesome.Sharp;component/fonts/#Font Awesome 6 Free Solid + + @@ -52,6 +63,14 @@ TargetType="Button"> + + @@ -63,7 +82,7 @@ - + @@ -72,7 +91,11 @@ - + + @@ -86,13 +109,15 @@ Ladder="{Binding Ladder}" /> - + Text="{Binding Type}"> + + + + + + + Text="{Binding Value}" + TextTrimming="CharacterEllipsis"> + + + + + + + + + + + + + + + diff --git a/Pf2eDataScrapper/WPF/EntityViewer/EntityForm.xaml b/Pf2eDataScrapper/WPF/EntityViewer/EntityForm.xaml index 79774ab..e1055bb 100644 --- a/Pf2eDataScrapper/WPF/EntityViewer/EntityForm.xaml +++ b/Pf2eDataScrapper/WPF/EntityViewer/EntityForm.xaml @@ -5,16 +5,18 @@ xmlns:component="clr-namespace:Pf2eDataScrapper.WPF.EntityViewer.Component" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:viewmodel="clr-namespace:Pf2eDataScrapper.WPF.EntityViewer.ViewModel" Title="EntityForm" Width="1400" Height="800" + d:DataContext="{d:DesignInstance Type=viewmodel:EntityFormViewModel}" x:ClassModifier="internal" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Loaded="Window_Loaded" mc:Ignorable="d"> - + @@ -47,6 +49,11 @@ Cursor="SizeNS" ResizeDirection="Rows" /> +