public static void Main(string[] args) { Console.WriteLine("Starting Persistent DataStore test..."); DataStore store = new DataStore(DataStore.PUC_DATA_FILE); store.Set("registry-file", "c:\\My Documents\\research\\controller\\puc\\registry\\pocketpc.xml"); store.Set("recent-servers-count", 2); store.Set("random-double", 4.56); store.Close(); store = new DataStore(DataStore.PUC_DATA_FILE); Console.WriteLine("registry-file: {0}", store.GetStringData("registry-file")); Console.WriteLine("random-double: {0}", store.GetDoubleData("random-double")); store.Set("random-double", 7.56); Console.WriteLine("random-double: {0}", store.GetDoubleData("random-double")); store.Close(); store = new DataStore(DataStore.PUC_DATA_FILE); Console.WriteLine("registry-file: {0}", store.GetStringData("registry-file")); Console.WriteLine("random-double: {0}", store.GetDoubleData("random-double")); }
public static String GetWidgetRegistryFileName() { return(_store.GetStringData(REGISTRY_FILE_ATTR)); }