105040 Update 注册提示区域,增加按钮事件复制内容
This commit is contained in:
parent
a885412c9f
commit
59a74a1c17
|
@ -2,6 +2,7 @@
|
||||||
using EPLAN.Harness.Core.Controls;
|
using EPLAN.Harness.Core.Controls;
|
||||||
using EPLAN.Harness.ProjectCore;
|
using EPLAN.Harness.ProjectCore;
|
||||||
using EPLAN.Harness.ProjectCore.Occurrences.Designer;
|
using EPLAN.Harness.ProjectCore.Occurrences.Designer;
|
||||||
|
using HandyControl.Controls;
|
||||||
using Sinvo.EplanHpD.Plugin.WPFUI.ViewModel;
|
using Sinvo.EplanHpD.Plugin.WPFUI.ViewModel;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -77,19 +78,24 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI.View
|
||||||
|
|
||||||
private void GlowWindow_Loaded(object sender, RoutedEventArgs e)
|
private void GlowWindow_Loaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
Growl.Register("LayoutMessage", GrowlParent);
|
||||||
OnInit();
|
OnInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void PrevBtn_Click(object sender, RoutedEventArgs e)
|
private void PrevBtn_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
viewModel.ToPrevLine();
|
viewModel.ToPrevLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void NextBtn_Click(object sender, RoutedEventArgs e)
|
private void NextBtn_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
viewModel.ToNextLine();
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue