Beispiel #1
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";
        }
Beispiel #2
0
 /// <summary>
 /// 判断字符串是否有空格
 /// </summary>
 /// <param name="TableName"></param>
 /// <returns></returns>
 static public bool IsSpace(this string tableName)//新添加
 {
     tableName = StrUtils.ConvertToNarrow(tableName);
     if (tableName.IndexOf(' ') > -1)
     {
         return(true);
     }
     return(false);
 }