protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents) { PlainTXTResourceSet rs = null; if (MyResourceSets.Contains(culture.Name)) { rs = MyResourceSets[culture.Name] as PlainTXTResourceSet; } else { rs = new PlainTXTResourceSet(culture);//(dsn, culture); MyResourceSets.Add(culture.Name, rs); } return(rs); }
protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents) { PlainTXTResourceSet rs = null; if (MyResourceSets.Contains(culture.Name)) { rs = MyResourceSets[culture.Name] as PlainTXTResourceSet; } else { if (File.Exists(Directory.GetCurrentDirectory() + @"\lang\" + culture.Name + @"\lngfile.txt")) { rs = new PlainTXTResourceSet(culture);//(dsn, culture); MyResourceSets.Add(culture.Name, rs); } } return(rs); }