diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/Sinvo.EplanHpD.Plugin.WPFUI.csproj b/Sinvo.EplanHpD.Plugin.WPFUI/Sinvo.EplanHpD.Plugin.WPFUI.csproj
index 975e64b..21da661 100644
--- a/Sinvo.EplanHpD.Plugin.WPFUI/Sinvo.EplanHpD.Plugin.WPFUI.csproj
+++ b/Sinvo.EplanHpD.Plugin.WPFUI/Sinvo.EplanHpD.Plugin.WPFUI.csproj
@@ -180,6 +180,9 @@
CableLectotypeWindow.xaml
+
+ LayoutHelperWindow.xaml
+
LectotypeWindow.xaml
@@ -201,6 +204,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml b/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml
new file mode 100644
index 0000000..8ba1bad
--- /dev/null
+++ b/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs b/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs
new file mode 100644
index 0000000..abe47b2
--- /dev/null
+++ b/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Sinvo.EplanHpD.Plugin.WPFUI.View
+{
+ ///
+ /// LayoutHelperWindow.xaml 的交互逻辑
+ ///
+ public partial class LayoutHelperWindow : Window
+ {
+ public LayoutHelperWindow()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml b/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml
index e82c7b7..328f6ef 100644
--- a/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml
+++ b/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml
@@ -172,7 +172,8 @@
@@ -208,6 +209,14 @@
+
+
+
+
+
+
+
+
@@ -218,7 +227,7 @@
+ IsExpanded="{Binding IsSelected, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=ListBoxItem}}">
@@ -230,7 +239,6 @@
-
-
+
-
-
diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml.cs b/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml.cs
index b01ca71..4286bbb 100644
--- a/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml.cs
+++ b/Sinvo.EplanHpD.Plugin.WPFUI/View/LectotypeWindow.xaml.cs
@@ -1,5 +1,9 @@
using CommunityToolkit.Mvvm.Messaging;
+using EPLAN.Harness.AppCore;
using EPLAN.Harness.Core.Controls;
+using EPLAN.Harness.Core.Extensions;
+using EPLAN.Harness.Core.LibEntities;
+using EPLAN.Harness.Core.Library;
using HandyControl.Controls;
using Microsoft.Win32;
using Microsoft.WindowsAPICodePack.Dialogs;
@@ -9,15 +13,18 @@ using Sinvo.EplanHpD.Plugin.WPFUI.Utils;
using Sinvo.EplanHpD.Plugin.WPFUI.View;
using Sinvo.EplanHpD.Plugin.WPFUI.ViewModel;
using System;
+using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
+using System.Reflection;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Forms.Integration;
using System.Windows.Input;
using System.Windows.Media.Animation;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement.Window;
namespace Sinvo.EplanHpD.Plugin.WPFUI
{
@@ -343,10 +350,9 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI
//}
}
}
-
private void EnableSelectSetBtn_Click(object sender, RoutedEventArgs e)
{
-
+ //LibrarySystem.PartBrowser.GetPart((new List() { CategoryType.Cable }).ToQueryFilter(), "123");
}
private void MotorDataGridToMotorSourceMenuItem_Click(object sender, RoutedEventArgs e)
@@ -394,5 +400,16 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI
{
}
+
+ private void StartLayoutBtn_Click(object sender, RoutedEventArgs e)
+ {
+ var window = new LayoutHelperWindow();
+ ElementHost.EnableModelessKeyboardInterop(window);
+ var mainApp = BaseApp.ActiveApplication;
+ var helper = new System.Windows.Interop.WindowInteropHelper(window);
+ helper.Owner = mainApp.Handle;
+ window.Show();
+ this.Close();
+ }
}
}