LunaTTvBot / LunaBot

0 stars 1 forks source link

Find a better way to store settings #1

Closed iPaat closed 8 years ago

iPaat commented 8 years ago

Currently it is not easy to work with this repository due to the settings are stored in setting.settings. I would be nice to find a better way to handle with those settings.

CapCalamity commented 8 years ago
  1. From the Project menu, choose Add New Item. The Add New Item dialog box opens.
  2. In the Add New Item dialog box, select Settings File, type in a name for the file, and click Add to add a new settings file to your solution.
  3. In Solution Explorer, drag the new Settings file into the Properties folder. This allows your new settings to be available in code.
  4. Add and use settings in this file as you would any other settings file. You can access this group of settings via the Properties.Settings object.

https://msdn.microsoft.com/en-us/library/bb397748(v=vs.110).aspx

Then, we could copy all settings from the original Settings.settings to an Example.settings file and ignore the Settings.settings file by git.

We just shouldn't forget to mention this in the Readme

iPaat commented 8 years ago

Closed with #4.