예제 #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);
 }
예제 #2
0
파일: Utils.cs 프로젝트: aehyok/InputModel
        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";
        }