|
|
@ -11,6 +11,9 @@ using System.Reflection;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
using Rs.Framework;
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
using System.Runtime.Serialization.Formatters.Binary;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Rs.MotionPlat
|
|
|
|
namespace Rs.MotionPlat
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -152,5 +155,29 @@ namespace Rs.MotionPlat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void label3_DoubleClick(object sender, EventArgs e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CopyObject<IAxis>.SetObject(m_axis);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void label4_DoubleClick(object sender, EventArgs e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
IAxis axis = CopyObject<IAxis>.GetObject();
|
|
|
|
|
|
|
|
if (axis != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//深度COPY
|
|
|
|
|
|
|
|
foreach(PropertyInfo pi in axis.Config.GetType().GetProperties())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Attribute attr = pi.GetCustomAttribute(typeof(CopyAttribute));
|
|
|
|
|
|
|
|
if(attr!=null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pi.SetValue(m_axis.Config, pi.GetValue(axis.Config, null));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
DataBinding();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|