Exemple #1
0
        private string GetPrintText(string regData)
        {
            string text = regData;
            Dictionary<string, string> keys = ShowData.GetKeysByRegData(regData);
            foreach (string key in keys.Keys)
            {
                text = text.Replace(keys[key], GetTextByKey(key));
            }

            return text;
        }
Exemple #2
0
        /// <summary>
        /// 判断给定的类型是不是文件路径;
        /// </summary>
        private bool IsOnlyFilePath(string regData)
        {
            Dictionary<string, string> keys = ShowData.GetKeysByRegData(regData);
            if (keys.Count != 1)
                return false;

            foreach (string key in keys.Keys)
            {
                if (key.Equals(ShowData.STR_FILE_PATH) || key.Equals(ShowData.STR_PROJECT_PATH))
                    return true;
            }

            return false;
        }