/// <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); }
/// <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); }