// (c) 2005 Richard Grimes // www.grimes.demon.co.uk using System; using System.Resources; using System.Reflection; internal class GetItems { static string GetString(string name) { ResourceManager rm = new ResourceManager("strings", Assembly.GetExecutingAssembly()); return rm.GetString(name); } public static string ErrorCode() { Console.Write("{0}: ", GetString("ONE")); return Console.ReadLine(); } public static string Description() { Console.Write("{0}: ", GetString("TWO")); return Console.ReadLine(); } }