settings

How to deploy a desktop .Net application with custom settings per user

折月煮酒 提交于 2019-12-23 02:53:36
问题 This seems like a simple question but the intergoogles have not been kind. I have a C# desktop application. There are certain properties that need to be customized per customer, such as each customer's organization's name, that are otherwise independent of the actual functionality of the application and therefore do not need to be compiled into it. What is the best/preferred method to pull this data out of the application, manage it in VS (2008), and deploy it to customers' desktops? For

How to deploy a desktop .Net application with custom settings per user

对着背影说爱祢 提交于 2019-12-23 02:53:00
问题 This seems like a simple question but the intergoogles have not been kind. I have a C# desktop application. There are certain properties that need to be customized per customer, such as each customer's organization's name, that are otherwise independent of the actual functionality of the application and therefore do not need to be compiled into it. What is the best/preferred method to pull this data out of the application, manage it in VS (2008), and deploy it to customers' desktops? For

Launch Intent from account-authenticator accountPreferences screen?

一世执手 提交于 2019-12-23 02:32:21
问题 I have included the AccountManager code in my app to enable the user to create and manage their account from inside their Settings application. I linked in the "accountPreferences" preferences file inside my account-authenticator definition, and the options show properly in the Settings > Accounts > My App screen. When I tap on one of them, instead of getting the activity I linked in, I get: 01-14 14:47:27.304: ERROR/AndroidRuntime(27708): FATAL EXCEPTION: main android.util

Multiple settings files in .NET

和自甴很熟 提交于 2019-12-23 02:24:08
问题 I'm currently using My.Settings/Properties.Settings to store various user settings. Many of these settings are bound to controls in various Forms. However I want a greater degree of control - specifically I would like to be able reload or save specific groups of settings. Using the in-built Settings.settings file, I can only handle these settings as a single group. I know that I can create additional settings files, and this article (Summary section) suggests that if Settings.settings is not

Set “human” app name for facebook app

戏子无情 提交于 2019-12-23 00:50:40
问题 I have created a Facebook app that is accessible at https://apps.facebook.com/12345678 , but I only have a URL with a cryptic app id. Where can I set a name for the app so that I have a nice URL like https://apps.facebook.com/onthefarm ? Thank you! 回答1: Yes you can :) Go to https://developers.facebook.com/apps/{your app id}/summary Edit the "App Namespace" field. Save 来源: https://stackoverflow.com/questions/8718106/set-human-app-name-for-facebook-app

How can I save a copy of Properties.Settings.Default to a variable?

允我心安 提交于 2019-12-22 11:11:34
问题 I have a "Restore Defaults" button in an options dialog and want to restore the values that are affected in this form only and not the whole Properties.Settings.Default So I tried: var backup = Properties.Settings.Default; Properties.Settings.Default.Reload(); overwriteControls(); Properties.Settings.Default = backup; But this unfortunately doesn't work since backup seems to change at Reload() , too? Why and how would I do this correctly? 回答1: The Settings class uses a singleton pattern,

How to save WPF UI state?

情到浓时终转凉″ 提交于 2019-12-22 08:27:15
问题 I have a TabControl and under it I have several elements like TreeView and DataGrid . When I expand the tree and resize data grid columns, if I then tab to another tab and come back, the entire UI state is forgotten. I have to re-expand the tree and resize the columns. Is there a sensible and existing way to save the UI state? Let's divide this into - temporary (in memory) and permanent (on the disk). 回答1: To save the state you can bind the relevant control( Width , Height , IsSelected etc.)

How to return from preference screen to main activity?

感情迁移 提交于 2019-12-22 06:49:55
问题 I have one main activity and one preferenceActivity. On my first activity I call menu and go on preferenceActivity by calling startActivityForResult. case R.id.settings: startActivityForResult(new Intent(this, SettingsActivity.class), LAUNCH_SETTINGS); return true; Then I change my settings and want to return on main activity and see main activity with new settings applyed. In onPause() method do following (as I right understand this method will be called when I press back button, right?)

django - what should you do if you don't need a database engine?

耗尽温柔 提交于 2019-12-22 04:29:15
问题 If you fail to set a database engine in setting.py you get an error. Is there some way to disable the database portion of django for a specific site if you don't have a need for a database? 回答1: You are required to use a database engine if you want to use some features of django, like sessions, for example. If you do not need those, just remove them from middleware classes. If you want to use sessions or store some data using django apps, but do not want to do all the complicated database

Error: Module not specified (IntelliJ IDEA)

萝らか妹 提交于 2019-12-22 01:53:50
问题 I was trying to execute a simple program in IntelliJ IDEA as a static web project. I'm newbie and I'm learning web development with Node.js. I took help from the official website of IntelliJ IDEA, but the error was same. Though, I configured the settings and Project structure also. Error: "C:\Program Files\Java\jdk1.8.0_91\bin\java" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 2016.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files