예제 #1
0
        public static void Config()
        {
            var rootPath = Directory.GetCurrentDirectory();

            //数据验证
            ValidationManager.ConfigureByConfigFile(rootPath);
            //显示验证
            DisplayManager.ConfigureByConfigFile(rootPath);
        }
예제 #2
0
 /// <summary>
 /// 配置数据验证
 /// </summary>
 static void ConfigureDataValidation()
 {
     ValidationManager.ConfigureByConfigFile(ApplicationManager.ApplicationExecutableDirectory);
 }