using Bro.Common.Base;
|
using Bro.Common.Helper;
|
using Bro.Common.Interface;
|
using Bro.Common.Model;
|
using System;
|
using System.Linq;
|
using System.Windows.Forms;
|
|
namespace Bro.UI.Device.Winform
|
{
|
public partial class FrmMotionCardOperationBase : Form
|
{
|
public FrmMotionCardOperationBase()
|
{
|
InitializeComponent();
|
}
|
|
public IDevice Device { get; set; }
|
|
public MotionCardOperationConfigBase MotionCardOperationConfig { get; set; }
|
|
/// <summary>
|
/// 当前板卡实例
|
/// </summary>
|
protected MotionCardBase MotionCard
|
{
|
get => Device as MotionCardBase;
|
}
|
|
|
public FrmMotionCardOperationBase(IDevice device)
|
{
|
InitializeComponent();
|
|
Device = device;
|
InitialLayout();
|
}
|
private void InitialLayout()
|
{
|
foreach (var axisConfig in MotionCard.IConfig.AxisSettings.FindAll(u => u.IsAxisEnabled))
|
{
|
CtrlMotionCardAxisOperation axisOperation = new CtrlMotionCardAxisOperation(Device, axisConfig.AxisIndex, axisConfig.AxisName);
|
axisOperation.Dock = DockStyle.Fill;
|
flowLayoutPanel1.Controls.Add(axisOperation);
|
|
}
|
}
|
|
private void buttonClearStatus_Click(object sender, EventArgs e)
|
{
|
|
}
|
|
private void buttonServoEnable_Click(object sender, EventArgs e)
|
{
|
|
}
|
|
private void buttonPositionReset_Click(object sender, EventArgs e)
|
{
|
|
}
|
|
private void btnStart_Click(object sender, EventArgs e)
|
{
|
|
}
|
|
private void buttonSmoothStop_Click(object sender, EventArgs e)
|
{
|
|
}
|
|
private void buttonEmergencyStop_Click(object sender, EventArgs e)
|
{
|
|
}
|
|
}
|
}
|