28 lines
774 B
C#
28 lines
774 B
C#
using Aurora;
|
|
using Aurora.View;
|
|
using System.Windows.Input;
|
|
|
|
namespace WeldingCommon.Views
|
|
{
|
|
internal class UCManualMotionButtonViewModel : NotifyPropertyChangedBase
|
|
{
|
|
public readonly IAuroraEnvironment auroraEnvironment;
|
|
public ICommand CMD_ShowSingleAxisControl { get; }
|
|
|
|
public UCManualMotionButtonViewModel(IAuroraEnvironment aurora)
|
|
{
|
|
auroraEnvironment = aurora;
|
|
CMD_ShowSingleAxisControl = new DelegateCommand(ShowSingleAxisControl);
|
|
}
|
|
|
|
private void ShowSingleAxisControl(object obj)
|
|
{
|
|
try {
|
|
var singleaxisdlg = new WDSingleAxisControl(auroraEnvironment);
|
|
singleaxisdlg.Show();
|
|
} catch {
|
|
}
|
|
}
|
|
}
|
|
}
|