コード例 #1
0
        public bool FromString(string data)
        {
            try
            {
                int i = data.LastIndexOf(' ');
                Name = data.Substring(i + 1, data.Length - i - 1).Trim();
                if (Constants.APP_SUB.Length > 0)
                {
                    Path = Constants.FTP_URL + Constants.APP_NAME + "/" + Constants.APP_SUB + "/" + Name;
                }
                else
                {
                    Path = Constants.FTP_URL + Constants.APP_NAME + "/" + Name;
                }
                State = UODState.NORMAL;

                return(true);
            }
            catch { return(false); }
        }
コード例 #2
0
 public UODownloadState(UODState id, string nm)
 {
     ID   = id;
     Name = nm;
 }