Exemplo n.º 1
0
        public static JFAxisPos Create(string axisName, double pos)
        {
            JFAxisPos ret = new JFAxisPos();

            ret.AxisName = axisName;
            ret.Position = pos;
            return(ret);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 设置轴坐标,如果坐标轴不存在,则会添加
 /// </summary>
 /// <param name="axisName"></param>
 /// <param name="pos"></param>
 public void SetAxisPos(string axisName, double pos)
 {
     for (int i = 0; i < Positions.Count; i++)
     {
         if (Positions[i].AxisName == axisName)
         {
             Positions[i].Position = pos;
             return;
         }
     }
     Positions.Add(JFAxisPos.Create(axisName, pos));
 }