Exemple #1
0
 /// <summary>
 /// 判断字符串是否有空格
 /// </summary>
 /// <param name="TableName"></param>
 /// <returns></returns>
 static public bool IsSpace(string TableName)//新添加
 {
     TableName = StrUtils.ConvertToNarrow(TableName);
     if (TableName.IndexOf(' ') > -1)
     {
         return(true);
     }
     return(false);
 }
Exemple #2
0
        public static string AppConfigFullPath;                 //	.NET程序缺省配置文件的全路径名称(WinForm版本)

        static Utils()
        {
            ExeFullPath = Assembly.GetEntryAssembly().Location;
            ExeDir      = Path.GetDirectoryName(ExeFullPath);
            StrUtils.EnsureEndsWith(ref ExeDir, '\\');
            ExeFileName       = Path.GetFileName(ExeFullPath);
            AppConfigFileName = ExeFileName + ".config";
            AppConfigFullPath = ExeFullPath + ".config";
        }