public static bool CheckForUpdates() { if (!Settings.Version.IsNullOrWhitespace()) { string newVersion = Settings.Version = typeof(ClientData).Assembly.GetName().Version.ToString(); Version version = new Version(Settings.Version); if (version < new Version(0, 13, 1)) { Settings.TextToSpeech = "Gablarski.SpeechNotifier.EventSpeech, Gablarski.SpeechNotifier"; Settings.Version = newVersion; Settings.Save(); return(true); } if (version < new Version(0, 13, 4)) { Settings.PlaybackDevice = "Default"; Settings.VoiceDevice = "Default"; Settings.Version = newVersion; Settings.Save(); return(true); } return(false); } db.Close(); DbFile.Delete(); Settings.Clear(); DbFile.Refresh(); db.Open(); CreateDbs(); return(true); }