Menu

Suggestion for namespace DBPlots.Settings

2012-05-12
2012-10-07
  • Dann Corbit

    Dann Corbit - 2012-05-12

    Add a try/catch in case the settings file is missing or damaged like this:

        public SettingManager()
        {
            try
            {
                this.SettingXMLDoc.Load(ConfigurationManager.AppSettings["settings"]);
            }
            catch (System.Exception e)
            {
                MessageBox.Show("Your settings file is missing or damaged, which has caused this problem: " + e.Message);
            }
            this.DateTimeSettings = this.GetDateTimeSettings(this.SettingXMLDoc);
        }
    
     
  • DBPlot

    DBPlot - 2012-10-07

    Dann,

    Thanks for your advice and sorry for the late reply. I have been planning move all settings to a embedded SQLite DB and will definitely add more error checking for the program.

    Please keep posting what you like and don't like so I know what need to be improved.

    Again, I appreciate your constructive comments.

    HNGO.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.