Beispiel #1
0
        /// <summary></summary>
        /// <param name="inst"></param>
        /// <returns></returns>
        public static string ToText(this BoxrobotTransferActionType inst)
        {
            string rtnV = inst.ToDefaultText();

            if (inst != BoxrobotTransferActionType.Dontcare)
            {
                rtnV = inst.ToString();
            }
            return(rtnV);
        }
Beispiel #2
0
        /// <summary>由起點到終點的檔案名稱</summary>
        /// <param name="startPoint">起點</param>
        /// <param name="destination">終點</param>
        /// <param name="direction">方向(去、 回)</param>
        /// <param name="actionType">動作方式(取、 放)</param>
        /// <returns></returns>
        private string FromStartPointToDestinationPathFile(BoxrobotTransferLocation startPoint, BoxrobotTransferLocation destination, BoxrobotTransferDirection direction, BoxrobotTransferActionType actionType)
        {
            string       fullFileName, fileName;
            const string connetSign = FileNameConnectSign;

            /** // vs 2013
             * fileName = $"{startPoint.ToText()}{connetSign}{direction.ToText()}{connetSign}{destination.ToText()}{connetSign}{actionType}{this.ExetendedFileName}";
             * fullFileName = $"{this.FilePath}{fileName}";
             */
            fileName     = startPoint.ToText() + connetSign + direction.ToText() + connetSign + destination.ToText() + connetSign + actionType + this.ExetendedFileName;
            fullFileName = this.FilePath + fileName;
            return(fullFileName);
        }
Beispiel #3
0
 public static string ToDefaultText(this BoxrobotTransferActionType inst)
 {
     return(default(string));
 }