コード例 #1
0
        /// <summary>
        /// 讀路徑Jason檔,依照清單移動
        /// </summary>
        /// <param name="PathFileLocation"></param>
        public List <HalRobotMotion> ReadMovePath(string PathFileLocation)
        {
            var PosInfo = JSonHelper.GetInstanceFromJsonFile <List <PositionInfo> >(PathFileLocation);
            var PosList = PosInfo.Select(m => m.GetPosition()).ToList();

            return(PosList);
        }
コード例 #2
0
ファイル: FmRobotPath.cs プロジェクト: tsaiyca/MvAssistant
 /// <summary>載入</summary>
 /// <returns>int, 載入的筆數</returns>
 private int ToLoad()
 {
     this.PositionInstances = new List <PositionInfo>();
     this.PositionInstances = JSonHelper.GetInstanceFromJsonFile <List <PositionInfo> >(TxtBxDevicePath.Text);
     return(this.PositionInstances.Count);
 }