コード例 #1
0
        /// <summary>
        /// Returns a setting store that allows to write/read files
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static IFileSettingStore GetFileStore(string name)
        {
            string CallingAssemblyTitle = IsolatedSettingStorage.GetCallingAssemblyTitle(Assembly.GetCallingAssembly());
            string SettingsPath         = Path.Combine(IsolatedSettingStorage.baseSettingPath, CallingAssemblyTitle);

            return(new FileSettingStore(SettingsPath, name));
        }
コード例 #2
0
 private static string GetMainAssemblyTitle()
 {
     return(IsolatedSettingStorage.GetCallingAssemblyTitle(Assembly.GetEntryAssembly()));
 }