private static void LoadApplicationSettings()
{
try
{
Program._jsonSerializationService = new JsonSerializationService<ApplicationSettings>();
Program._audioService = new AudioService();
Program._applicationSettingsService = new ApplicationSettingsService(_jsonSerializationService, _audioService);
}
catch (Exception ex)
{
Program.ErrorLoadingApplicationSettings = true;
MessageBox.Show("There was an error trying to load the application. Please view the error log for more details.", "Error Occurred.", MessageBoxButtons.OK, MessageBoxIcon.Error);
_loggingService.LogErrorFormat(ex, MethodBase.GetCurrentMethod().Name);
}
}