예제 #1
0
        public static ErrorProviderConfig ReadConfig(string file)
        {
            XmlSerializer       cfgRdr = new XmlSerializer(typeof(ErrorProviderConfig));
            ErrorProviderConfig ret    = (ErrorProviderConfig)cfgRdr.Deserialize(new XmlTextReader(file));

            // handle path rel to the config file
            ret.FilesPath = Path.Combine(Path.GetDirectoryName(file), ret.FilesPath);
            return(ret);
        }
예제 #2
0
		public ErrorProvider (string configFile)
		{
			config = ReadConfig (configFile);
		}
예제 #3
0
 public ErrorProvider(string configFile)
 {
     config = ReadConfig(configFile);
 }