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); }
public ErrorProvider (string configFile) { config = ReadConfig (configFile); }
public ErrorProvider(string configFile) { config = ReadConfig(configFile); }