105040 Update 注册提示区域,增加按钮事件复制内容

This commit is contained in:
lihanbo 2024-12-17 15:15:12 +08:00
parent a885412c9f
commit 59a74a1c17
1 changed files with 10 additions and 4 deletions

View File

@ -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);
}
}
}
}