From 59a74a1c17c79ce1cf5bb2fc76309d52c75b4144 Mon Sep 17 00:00:00 2001 From: lihanbo Date: Tue, 17 Dec 2024 15:15:12 +0800 Subject: [PATCH] =?UTF-8?q?105040=20Update=20=E6=B3=A8=E5=86=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8C=BA=E5=9F=9F=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BA=8B=E4=BB=B6=E5=A4=8D=E5=88=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/LayoutHelperWindow.xaml.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs b/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs index c57e521..89f9649 100644 --- a/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs +++ b/Sinvo.EplanHpD.Plugin.WPFUI/View/LayoutHelperWindow.xaml.cs @@ -2,6 +2,7 @@ using EPLAN.Harness.Core.Controls; using EPLAN.Harness.ProjectCore; using EPLAN.Harness.ProjectCore.Occurrences.Designer; +using HandyControl.Controls; using Sinvo.EplanHpD.Plugin.WPFUI.ViewModel; using System; using System.Collections.Generic; @@ -77,19 +78,24 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI.View private void GlowWindow_Loaded(object sender, RoutedEventArgs e) { + Growl.Register("LayoutMessage", GrowlParent); OnInit(); } - - private void PrevBtn_Click(object sender, RoutedEventArgs e) { viewModel.ToPrevLine(); } - private void NextBtn_Click(object sender, RoutedEventArgs e) { viewModel.ToNextLine(); } + private void AxisNoAndLineBtn_Click(object sender, RoutedEventArgs e) + { + if(viewModel != null && viewModel.SelectedLine != null) + { + var text = $"{viewModel.SelectedLine.AxisNo}-{viewModel.SelectedLine.CurrentLine}"; + Clipboard.SetDataObject(text); + } + } } - }